def get_authorization_header(request):
 auth = request.META.get(u'HTTP_AUTHORIZATION', '')
 if isinstance(auth, text_type):
  auth = auth.encode(HTTP_HEADER_ENCODING)
 return auth

def get_authorization_header ( request ) : auth = request . META . get ( u'HTTP_AUTHORIZATION' , '' ) if isinstance ( auth , text_type ) : auth = auth . encode ( HTTP_HEADER_ENCODING ) return auth
return requests authorization: header .