Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding explicit form encoding

  • Loading branch information...
commit e2685f951d1cd5133a1c72d27b675abe77dff372 1 parent 149ff8c
@ozten ozten authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 django_browserid/auth.py
View
6 django_browserid/auth.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.