1. Paul Tan
  2. pyoauth1client

Commits

Paul Tan  committed 06fd833

More tumblr workarounds.

  • Participants
  • Parent commits 0831ef3
  • Branches default

Comments (0)

Files changed (1)

File oauth1client/__init__.py

View file
 
 
 def signature_base_string(method, uri, oauth_params = None, data = None):
-    return '{0}&{1}&{2}'.format(urlquote(method.upper()), urlquote(base_string_uri(uri)),
+    x = '{0}&{1}&{2}'.format(urlquote(method.upper()), urlquote(base_string_uri(uri)),
             urlquote(base_string_request_params(uri, oauth_params, data)))
+    #TODO: Working around tumblr!
+    x = x.replace('%257E','~')
+    return x
 
 
 """ Signature Methods """