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

Set headers on client credentials access token response #216

Merged
merged 1 commit into from
Oct 10, 2013

Conversation

shurik
Copy link
Contributor

@shurik shurik commented Oct 10, 2013

Client credentials grant flow should return application/json content type header per http://tools.ietf.org/html/rfc6749#section-4.4.3.

@ib-lundgren
Copy link
Collaborator

Looks good. Thanks!

ib-lundgren added a commit that referenced this pull request Oct 10, 2013
Set headers on client credentials access token response
@ib-lundgren ib-lundgren merged commit f66c1e3 into oauthlib:master Oct 10, 2013
@@ -61,6 +61,11 @@ def create_token_response(self, request, token_handler):
.. _`Section 5.1`: http://tools.ietf.org/html/rfc6749#section-5.1
.. _`Section 5.2`: http://tools.ietf.org/html/rfc6749#section-5.2
"""
headers = {
'Content-Type': 'application/json;charset=UTF-8',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json has no charset.

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

Successfully merging this pull request may close these issues.

None yet

3 participants