Skip to content
Myr

Fix order of return values from OAuth Client.sign()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Idan Gazit · committed by Donald Stufft · parent 7b81985 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/auth.py+2 added-1 removed
63 unmodified lines
64 # XXX gross hack. We must pass unicode...65 body = unicode(body, 'utf-8')66 alter_body = True6768 full_url, new_body, headers = self.client.sign(r.url, unicode(r.method), body, r.headers)68 full_url, headers, new_body = self.client.sign(r.url, unicode(r.method), body, r.headers)6970 r.url = full_url71 if alter_body:72 r.data = new_body73 r.headers = headers
122 unmodified lines