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

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

Projects

None yet

1 participant

@mworrell
Zotonic member

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