code: def get_header(request, header_service):
      
      service = request.META.get('HTTP_{}'.format(header_service), b'')
      if isinstance(service, str):
          # Work around django test client oddness
          service = service.encode(HTTP_HEADER_ENCODING)
      return service
docs: Return request's 'X_POLYAXON_...:' header, as a bytestring.
  
      Hide some test client ickyness where the header can be unicode.