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

Error documents should only be used when text/html is accepted #6

Open
mworrell opened this issue Mar 8, 2013 · 0 comments
Open

Error documents should only be used when text/html is accepted #6

mworrell opened this issue Mar 8, 2013 · 0 comments

Comments

@mworrell
Copy link
Member

mworrell commented Mar 8, 2013

We now send a HTML error document, even when the content type of the controller will be something different.

We also don't check what the user agent accepts.

Maybe it is possible to determine the probable content type by calling content_types_provided and check it against the accept headers.

That is just like steps v3c3 and v3c4 in the webmachine_decision_core.erl

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