Skip to content
Snippets Groups Projects
Commit 0cda1244 authored by Nuwan Rajika Kumarasiri's avatar Nuwan Rajika Kumarasiri
Browse files

Encode the body for passing through oauth2

When not encoded ended up with
``` self['oauth_body_hash'] = base64.b64encode(sha1(self.body).digest())
   TypeError: Unicode-objects must be encoded before hashing
   ```
parent 02f080f5
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,6 @@ def get_live_url(method,
resp, content = client.request(url,
method=method,
body=body,
body=body.encode('utf-8'),
headers=headers)
return (resp, content)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment