Permalink
Browse files

Adding explicit form encoding

  • Loading branch information...
1 parent 149ff8c commit e2685f951d1cd5133a1c72d27b675abe77dff372 @ozten ozten committed Nov 11, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 django_browserid/auth.py
View
@@ -1,3 +1,4 @@
+
try:
import json
except ImportError:
@@ -49,7 +50,10 @@ def _verify_http_request(self, url, qs):
params['disable_ssl_certificate_validation'] = disable_cert_check
client = httplib2.Http(**params)
- resp, content = client.request('%s?%s' % (url, qs), 'POST')
+
+ headers = {'Content-type': 'application/x-www-form-urlencoded'}
+ resp, content = client.request(url, 'POST', body=qs, headers=headers)
+
return json.loads(content)
def verify(self, assertion, audience):

0 comments on commit e2685f9

Please sign in to comment.