addToken_
needing a trailing space and allows multiples spaces in css selector.
application/x-www-form-urlencoded
header being added to all requests, even those sending a binary POST body #1064
application/x-www-form-urlencoded
Content-Type header is now only added if key-value POST parameters are addedsetRequestBody
, no default Content-Type header is setConfiguring middleware makes it easy to add logging among other things. middleware is applied to the wai app before each test.
If you follow the yesod scaffold, you probably have a
withApp function in TestImport.hs.
This function should now return (foundation, middleware).
id
is an acceptable value for middleware.
test helpers for CRSF middleware such as addTokenFromCookie
addTokenFromCookie
and addTokenFromCookieNamedToHeaderNamed
, which support the new CSRF token middleware #1058getRequestCookies
, which returns the cookies from the most recent request #1058Provide Example
instance for YesodExample
.
Upgrade to hspec 2