yesod/yesod-core/Yesod
Steven Leiva 266c436f18 selectRep chooses first rep if no matches found.
The `selectRep` documentation indicates that it choose the first
representation provided if no representation matches.

This was only partially correct, as `selectRep` required that no
representation matched **and** that the `Content-Type` header of the
response was empty.

This led to a problem because `defaultErrorhandler` relies on
`selectRep`, and when `selectRep` was unable to find a suitable
representation, it would "swallow" the original error that resulted in
`defaultErrorhandler` being called, and set a status 406 for all cases.
2018-07-19 21:32:02 -05:00
..
Core selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
Routes Clean up some CPP 2018-07-03 18:57:23 +03:00
Core.hs Switch to SubHandlerFor 2018-01-24 13:01:26 +02:00