You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def to_postdata(self):
return '&'.join(['%s=%s' % (escape(str(k)), escape(str(v))) for k, v in self.parameters.iteritems()])
I had a case where my signature contained an equal-sign (=). Escaping the signature resulted in that being replaced by "%3D", which caused twitter to give me a 401 when trying to request an unauthorized token.
I fixed the issue simply by not escaping v, but maybe there's a better approach.
-- FIXED --
def to_postdata(self):
return '&'.join(['%s=%s' % (escape(str(k)), str(v)) for k, v in self.parameters.iteritems()])
The text was updated successfully, but these errors were encountered:
def to_postdata(self):
return '&'.join(['%s=%s' % (escape(str(k)), escape(str(v))) for k, v in self.parameters.iteritems()])
I had a case where my signature contained an equal-sign (=). Escaping the signature resulted in that being replaced by "%3D", which caused twitter to give me a 401 when trying to request an unauthorized token.
I fixed the issue simply by not escaping v, but maybe there's a better approach.
-- FIXED --
def to_postdata(self):
return '&'.join(['%s=%s' % (escape(str(k)), str(v)) for k, v in self.parameters.iteritems()])
The text was updated successfully, but these errors were encountered: