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

Closed
mworrell opened this Issue Mar 8, 2013 · 1 comment

Projects

None yet

3 participants

@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

See also: zotonic/webzmachine#6

@arjan arjan modified the milestone: Release 0.11, Release 0.10 Apr 17, 2014
@arjan arjan modified the milestone: Release 1.0, Release 0.11 Sep 30, 2014
@ddeboer
Zotonic member

Has been fixed in controller_error.

@ddeboer ddeboer closed this Jan 12, 2016
@ddeboer ddeboer modified the milestone: Release 1.0, Roadmap Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment