Update OAuthSimple.py

Making signature base string generation according to RFC 5849 (http://tools.ietf.org/html/rfc5849)
This commit is contained in:
MarkoV
2015-01-13 09:09:48 +00:00
parent 8c85c50e13
commit 258c956803
+1 -1
View File
@@ -236,7 +236,7 @@ class OAuthSimple:
elif (self._parameters['oauth_signature_method'] == 'HMAC-SHA1'):
self.sbs = '&'.join([self._oauthEscape(self._action),
self._oauthEscape(self._path),
normParamString])
self._oauthEscape(normParamString)])
return base64.b64encode(hmac.new(secretKey,
self.sbs,
hashlib.sha1).digest())