Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in OAuth 1, Content-Type header check is case sensitive #121

Closed
elachuni opened this issue Feb 21, 2013 · 2 comments
Closed

in OAuth 1, Content-Type header check is case sensitive #121

elachuni opened this issue Feb 21, 2013 · 2 comments

Comments

@elachuni
Copy link

When signing an OAuth1 request with Content-Type 'application/x-www-form-urlencoded' and a body, the header needs to be exactly "Content-Type".

The check oauthlib performs is case-sensitive, so neither "Content-type" nor "content-type" work and oauthlib will raise ValueError("Body contains parameters but Content-Type header was not set.") as if there weren't a content-type header at all.

@ib-lundgren
Copy link
Collaborator

Yea, it's been in the back of my head to fix this but never got around to it. Will sort something out tonight, thanks for reporting!

@elachuni
Copy link
Author

np, thanks for the quick response (and for oauthlib)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants