http-streams 0.6.0.0 → 0.6.0.1
raw patch · 3 files changed
+8/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- http-streams.cabal +1/−1
- src/Network/Http/RequestBuilder.hs +2/−3
- src/Network/Http/ResponseParser.hs +5/−1
http-streams.cabal view
@@ -1,6 +1,6 @@ cabal-version: >= 1.10 name: http-streams-version: 0.6.0.0+version: 0.6.0.1 synopsis: An HTTP client using io-streams description: /Overview/
src/Network/Http/RequestBuilder.hs view
@@ -100,9 +100,8 @@ let e = case m of GET -> Empty- POST -> Chunking- PUT -> Chunking- _ -> Empty+ TRACE -> Empty+ _ -> Chunking let h3 = case e of Chunking -> updateHeader h2 "Transfer-Encoding" "chunked"
src/Network/Http/ResponseParser.hs view
@@ -136,10 +136,14 @@ c = pContentEncoding p l = pContentLength p + readDecimal :: (Enum α, Num α, Bits α) => ByteString -> α-readDecimal = S.foldl' f 0+readDecimal str' =+ S.foldl' f 0 x' where f !cnt !i = cnt * 10 + digitToInt i++ x' = head $ S.words str' {-# INLINE digitToInt #-} digitToInt :: (Enum α, Num α, Bits α) => Char -> α