projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b81985
)
Fix order of return values from OAuth Client.sign()
author
Idan Gazit
<idan@gazit.me>
Sun, 22 Apr 2012 11:39:53 +0000
(14:39 +0300)
committer
Donald Stufft
<donald.stufft@gmail.com>
Tue, 1 May 2012 10:20:52 +0000
(06:20 -0400)
requests/auth.py
patch
|
blob
|
history
diff --git
a/requests/auth.py
b/requests/auth.py
index 18d6318ce9811f3c9741c0e29687014b660acc79..d119c8d8c43043bdb0fab9a6bef6234623a71599 100644
(file)
--- a/
requests/auth.py
+++ b/
requests/auth.py
@@
-65,7
+65,8
@@
class OAuth1(AuthBase):
body = unicode(body, 'utf-8')
alter_body = True
- full_url, new_body, headers = self.client.sign(r.url, unicode(r.method), body, r.headers)
+ full_url, headers, new_body = self.client.sign(r.url, unicode(r.method), body, r.headers)
+
r.url = full_url
if alter_body:
r.data = new_body