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:
7e594eb
)
Why auth must be prepared last
author
Ib Lundgren
<ib.lundgren@gmail.com>
Wed, 19 Dec 2012 20:30:11 +0000
(21:30 +0100)
committer
Ib Lundgren
<ib.lundgren@gmail.com>
Wed, 19 Dec 2012 20:30:11 +0000
(21:30 +0100)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
a7009eb
..
59f8ad4
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-195,6
+195,8
@@
class Request(RequestHooksMixin):
p.prepare_headers(self.headers)
p.prepare_cookies(self.cookies)
p.prepare_body(self.data, self.files)
+ # Note that prepare_auth most be last to enable authentication schemes
+ # such as OAuth to work on a fully prepared request.
p.prepare_auth(self.auth)
return p