snap-cors 1.2.6 → 1.2.7
raw patch · 3 files changed
+7/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Changelog.md +5/−0
- snap-cors.cabal +1/−1
- src/Snap/CORS.hs +1/−1
Changelog.md view
@@ -1,3 +1,8 @@+# 1.2.7++* Now compiles with GHC 7.10. Thanks to Philip Joseph (@lambdahands) for fixing+ this.+ # 1.2.6 * Increased upper bounds on `network`, `text` and `transformers`.
snap-cors.cabal view
@@ -1,5 +1,5 @@ name: snap-cors-version: 1.2.6+version: 1.2.7 synopsis: Add CORS headers to Snap applications description: Add CORS (cross-origin resource sharing) headers to Snap applications. This
src/Snap/CORS.hs view
@@ -205,7 +205,7 @@ splitHeaders = let spaces = Attoparsec.many' Attoparsec.space- headerC = Attoparsec.satisfy (not . (`elem` " ,"))+ headerC = Attoparsec.satisfy (not . (`elem`( " ," :: String))) headerName = Attoparsec.many' headerC header = spaces *> headerName <* spaces parser = HashSet.fromList <$> header `Attoparsec.sepBy` (Attoparsec.char ',')