We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b042c22 commit 05e2ffbCopy full SHA for 05e2ffb
oauth2/__init__.py
@@ -393,7 +393,7 @@ def to_header(self, realm=''):
393
"""Serialize as a header for an HTTPAuth request."""
394
oauth_params = ((k, v) for k, v in self.items()
395
if k.startswith('oauth_'))
396
- stringy_params = ((k, escape(str(v))) for k, v in oauth_params)
+ stringy_params = ((k, escape(v)) for k, v in oauth_params)
397
header_params = ('%s="%s"' % (k, v) for k, v in stringy_params)
398
params_header = ', '.join(header_params)
399
0 commit comments