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
Michael Snoyman
103c098cf8
Catch up with Data.Conduit.Combinators
2018-01-10 12:16:31 -08:00
Michael Snoyman
a16e75249a
More moving over to unliftio
2017-12-31 09:20:02 +02:00
Michael Snoyman
3dc2d10b30
Compile with -Wall -Werror
2017-02-05 12:09:18 +02:00
Mikkel Christiansen
50c4138a5c
Take hlint suggestions.
2016-06-28 08:28:23 +02:00
Michael Snoyman
6eb1447dd9
Add missing LANGUAGE pragma
2014-08-27 08:15:47 +03:00
Michael Snoyman
71263ae047
Initial WAI 3.0 support, one test still failing
2014-05-22 20:17:29 +03:00
Michael Snoyman
c44a48c8ae
Test cases for #712
2014-04-10 19:59:54 +03:00
Michael Snoyman
f4bbe1cc52
Set content-length whenever evaluating a response body
2014-03-02 14:30:46 +02:00
Michael Snoyman
5ee5301ce8
Added test cases for #658 notCaught 4 and 5
2014-01-27 17:24:50 +02:00
Michael Snoyman
86b7f5ea43
Test case and fix for notCaught3 in #658
2014-01-27 17:20:02 +02:00
Michael Snoyman
d5b66d35d5
Allow overriding status code in error handlers
2013-08-04 08:55:42 +03:00
Michael Snoyman
743966898d
Move away from RepHtml some more
2013-05-20 09:16:53 +03:00
Simon Hengel
dfae661878
Adept Hspec tests for forward compatibility
...
* Don't use hspecX, it's deprecated.
* Do not import Test.Hspec.HUnit. It's no longer necessary and may be
removed in the future.
2012-10-16 14:44:58 +02:00
Michael Snoyman
df5018a94c
hspec 1.3
2012-08-03 15:40:36 +03:00
Michael Snoyman
c009067b11
DontFullyEvaluate (Felipe's code)
2012-07-25 08:54:43 +03:00
Michael Snoyman
f91ff4fde2
fullyEvaluateBody
2012-07-24 17:49:17 +03:00
Michael Snoyman
ddd1059983
Updated fast-logger/wai-logger
2012-07-05 11:04:04 +03:00
Michael Snoyman
8fac4917b5
FileUpload ( #358 )
2012-07-02 11:15:02 +03:00
Simon Hengel
653ffd02fb
yesod-core: Adapt tests for hspec-1.1
...
This is not strictly necessary, the `UnevaluatedSpec` is merely
deprecated. But it is a good idea anyway.
2012-05-07 07:43:28 +02:00
Mark Wright
9f4c92f181
yesod-core changes for hspec 1.0
2012-05-06 12:18:49 +10:00
gregwebs
47b89724e8
Revert "fix tests: import Yesod.Core hiding (Session)"
...
This reverts commit f548a4c566 .
2012-03-25 13:31:02 -07:00
gregwebs
2baeddd698
fix doctype 5
2012-03-25 08:21:21 -07:00
gregwebs
f548a4c566
fix tests: import Yesod.Core hiding (Session)
2012-03-25 08:08:19 -07:00
gregwebs
b1bc42a8bd
use doctype 5 instead of !!!
2012-03-25 07:49:35 -07:00
Michael Snoyman
4dd9880389
Approot
2012-02-09 09:08:06 +02:00
Michael Snoyman
0511a1e351
yesod-core compiles and passes all tests (that was easy)
2011-12-27 16:11:52 +02:00
Greg Weber
236d55f00b
fix yesod mega
2011-11-26 10:44:56 -06:00