projects
/
twitter-api-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle content-type header charset value for streaming API
[twitter-api-cdsw]
/
oauthlib
/
oauth1
/
rfc5849
/
signature.py
diff --git
a/oauthlib/oauth1/rfc5849/signature.py
b/oauthlib/oauth1/rfc5849/signature.py
index f57d80a8df31e953e72b976c0cc4f44edbb86417..8fa22baf7566493f29aaa47777aceeb481645799 100644
(file)
--- a/
oauthlib/oauth1/rfc5849/signature.py
+++ b/
oauthlib/oauth1/rfc5849/signature.py
@@
-500,6
+500,8
@@
def sign_rsa_sha1(base_string, rsa_private_key):
def sign_rsa_sha1_with_client(base_string, client):
+ if not client.rsa_key:
+ raise ValueError('rsa_key is required when using RSA signature method.')
return sign_rsa_sha1(base_string, client.rsa_key)
Benjamin Mako Hill
||
Want to submit a patch?