Skip to content

Commit 62f83bf

Browse files
author
leah.culver
committed
fix for #31, thanks ashish.tonse
git-svn-id: https://oauth.googlecode.com/svn/code/python@847 f7ae4463-c52f-0410-a7dc-93bad6e629e8
1 parent 1998cd6 commit 62f83bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oauth/oauth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def to_header(self, realm=''):
124124
# add the oauth parameters
125125
if self.parameters:
126126
for k, v in self.parameters.iteritems():
127-
auth_header += ', %s="%s"' % (k, escape(str(v)))
127+
if k[:6] == 'oauth_':
128+
auth_header += ', %s="%s"' % (k, escape(str(v)))
128129
return {'Authorization': auth_header}
129130

130131
# serialize as post data for a POST request

0 commit comments

Comments
 (0)