mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #1048 from ib-lundgren/master
Swap prepare_auth and body
This commit is contained in:
+3
-1
@@ -194,8 +194,10 @@ class Request(RequestHooksMixin):
|
||||
p.prepare_url(self.url, self.params)
|
||||
p.prepare_headers(self.headers)
|
||||
p.prepare_cookies(self.cookies)
|
||||
p.prepare_auth(self.auth)
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user