Spock 0.9.0.0 → 0.9.0.1
raw patch · 2 files changed
+21/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Spock.cabal +1/−1
- src/Web/Spock/Internal/Wire.hs +20/−1
Spock.cabal view
@@ -1,5 +1,5 @@ name: Spock-version: 0.9.0.0+version: 0.9.0.1 synopsis: Another Haskell web framework for rapid development description: This toolbox provides everything you need to get a quick start into web hacking with haskell: .
src/Web/Spock/Internal/Wire.hs view
@@ -117,8 +117,27 @@ multiHeaderMap :: HM.HashMap (CI.CI BS.ByteString) MultiHeader multiHeaderMap =- HM.fromList $ flip map [minBound..maxBound] $ \mh ->+ HM.fromList $ flip map allHeaders $ \mh -> (multiHeaderCI mh, mh)+ where+ -- this is a nasty hack until we know more about the origin of+ -- uncaught exception: ErrorCall (toEnum{MultiHeader}: tag (-12565) is outside of enumeration's range (0,12))+ -- see: https://ghc.haskell.org/trac/ghc/ticket/10792 and https://github.com/agrafix/Spock/issues/44+ allHeaders =+ [ MultiHeaderCacheControl+ , MultiHeaderConnection+ , MultiHeaderContentEncoding+ , MultiHeaderContentLanguage+ , MultiHeaderPragma+ , MultiHeaderProxyAuthenticate+ , MultiHeaderTrailer+ , MultiHeaderTransferEncoding+ , MultiHeaderUpgrade+ , MultiHeaderVia+ , MultiHeaderWarning+ , MultiHeaderWWWAuth+ , MultiHeaderSetCookie+ ] data ResponseState = ResponseState