packages feed

hack-handler-epoll 0.1.2 → 0.1.3

raw patch · 2 files changed

+3/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

hack-handler-epoll.cabal view
@@ -1,5 +1,5 @@ name:               hack-handler-epoll-version:            0.1.2+version:            0.1.3 synopsis:           hack handler implementation using epoll description:        Hack handler implemented using System.Linux.Epoll category:           Web
src/Hack/Handler/Epoll.hs view
@@ -38,6 +38,7 @@ import System.Posix.Types import qualified Data.ByteString.Lazy.UTF8 as B import qualified Data.Map as M+import Codec.Binary.UTF8.String   data ServerConf = ServerConf@@ -144,7 +145,7 @@         hd = map (\(k, v) -> (k ++ (": " ++ v))) $ headers resp     writeBuffer b $ showString sl         . showString (concat . intersperse "\r\n" $ hd)-        . showString "\r\n\r\n" $ B.toString . body $ resp+        . showString "\r\n\r\n" $ encodeString . B.toString . body $ resp   readBody :: BodyLen -> String -> String