yesod/yesod-core
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
..
attic Added pong.hs 2013-03-17 12:48:11 +02:00
bench Cleanup warnings 2018-01-15 15:09:07 +02:00
static Add 'yesod-core/' from commit '982d6185bee75b078bee92bd8a2e8743707f1922' 2011-07-22 08:59:56 +03:00
test selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
Yesod selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
.gitignore Add 'yesod-core/' from commit '982d6185bee75b078bee92bd8a2e8743707f1922' 2011-07-22 08:59:56 +03:00
bench.sh Remove a painful slowdown from randomIV 2011-11-25 15:11:15 +02:00
ChangeLog.md selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00
helloworld.hs MonadHandler/MonadWidget 2013-03-17 10:10:39 +02:00
LICENSE Update license with MIT license 2012-04-29 09:38:45 +03:00
README.md README.md 2014-11-23 12:18:41 +02:00
Setup.lhs Add 'yesod-core/' from commit '982d6185bee75b078bee92bd8a2e8743707f1922' 2011-07-22 08:59:56 +03:00
yesod-core.cabal selectRep chooses first rep if no matches found. 2018-07-19 21:32:02 -05:00

yesod-core

This is the main package for Yesod, providing all core functionality on which other packages can be built. It provides dispatch, handler functions, widgets, etc.

Yesod is well documented on its website.