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

Warden::OAuth2::FailureApp is not using 'application/json' #2

Open
devinus opened this issue Mar 21, 2012 · 0 comments
Open

Warden::OAuth2::FailureApp is not using 'application/json' #2

devinus opened this issue Mar 21, 2012 · 0 comments

Comments

@devinus
Copy link

devinus commented Mar 21, 2012

It's using the first content type passed in the Accept header:

➜ ~ curl -H 'Accept: text/plain, application/json' -i http://127.0.0.1:9292/v1/customers/search
HTTP/1.1 401 Unauthorized
Content-Type: text/plain
X-Accepted-Oauth-Scopes: default
Content-Length: 30
Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
Date: Wed, 21 Mar 2012 19:23:03 GMT
Connection: Keep-Alive

{"error":"insufficient_scope"}%
➜ ~ curl -H 'Accept: application/json, text/plain' -i http://127.0.0.1:9292/v1/customers/search
HTTP/1.1 401 Unauthorized
Content-Type: application/json
X-Accepted-Oauth-Scopes: default
Content-Length: 30
Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
Date: Wed, 21 Mar 2012 19:23:13 GMT
Connection: Keep-Alive

{"error":"insufficient_scope"}%

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

1 participant