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

api should be User-Agent agnostic #1505

Closed
kalabiyau opened this issue Feb 5, 2016 · 2 comments
Closed

api should be User-Agent agnostic #1505

kalabiyau opened this issue Feb 5, 2016 · 2 comments

Comments

@kalabiyau
Copy link
Member

Generally good idea to not to enforce any behavior in the API based on user-agent header.
So, when browser (which is totally valid user-agent) is used for the same endpoints as e.g. curl - that should have exactly the same behavior

@coolo
Copy link
Member

coolo commented Feb 5, 2016

it does as long as you request the same mimetypes than a browser.

@hennevogel
Copy link
Member

What @coolo is trying to say is that the user agent has nothing to do with it. See WebuiMatcher and APIMatcher in config/routes.rb

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

3 participants