Commits

Michał Jaworski committed af1e10c

detail

  • Participants
  • Parent commits 1f43304

Comments (0)

Files changed (1)

oauth_provider/utils.py

         auth_header = {'Authorization': request.META['Authorization']}
     elif 'HTTP_AUTHORIZATION' in request.META:
         auth_header =  {'Authorization': request.META['HTTP_AUTHORIZATION']}
-   
+
+
     # Don't include extra parameters when request.method is POST and 
     # request.MIME['CONTENT_TYPE'] is "application/x-www-form-urlencoded" 
     # (See http://oauth.net/core/1.0a/#consumer_req_param).
     # so an ugly test is made here, if you find a better solution...
     parameters = {}
     if request.method == "POST" and \
-        (request.META.get('CONTENT_TYPE') == "application/x-www-form-urlencoded" \
+        (request.META.get('CONTENT_TYPE') == "application/x-www-form-urlencoded"
             or request.META.get('SERVER_NAME') == 'testserver'):
         parameters = dict((k, v.encode('utf-8')) for (k, v) in request.REQUEST.iteritems())