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:
f1d104e
)
upper case automatically
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 2 May 2012 22:57:06 +0000
(18:57 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 2 May 2012 22:57:06 +0000
(18:57 -0400)
requests/auth.py
patch
|
blob
|
history
diff --git
a/requests/auth.py
b/requests/auth.py
index
5d2d982
..
520f156
100644
(file)
--- a/
requests/auth.py
+++ b/
requests/auth.py
@@
-47,6
+47,12
@@
class OAuth1(AuthBase):
signature_method=SIGNATURE_HMAC,
signature_type=SIGNATURE_TYPE_AUTH_HEADER,
rsa_key=None, verifier=None):
+
+ try:
+ signature_type = signature_type.upper()
+ except AttributeError:
+ pass
+
self.client = Client(client_key, client_secret, resource_owner_key,
resource_owner_secret, callback_uri, signature_method,
signature_type, rsa_key, verifier)