on master help sign in
honour Connection: Close for responses without body
commitc34ef6d78c67760797b0ad318f6d26d20c0e73f7 authorLuite Stegeman <stegeman@gmail.com> dateMon 10 Oct 2011, 01:18 (15 years ago) parentec6a939
1 file changed+2−2
warp/Network/Wai/Handler/Warp.hs+2−2
warp/Network/Wai/Handler/Warp.hs+2−2
@@ -394,7 +394,7 @@ sendResponse th req socket (ResponseBuilder s hs b)
394394 $ toLazyByteString
395395 $ headers (httpVersion req) s hs False
396396 T.tickle th
397− return True
397+ return isPersist
398398 where
399399 headers' = headers (httpVersion req) s hs isChunked'
400400 b' = if isChunked'
@@ -414,7 +414,7 @@ sendResponse th req socket (ResponseEnumerator res) =
414414 liftIO $ Sock.sendMany socket
415415 $ L.toChunks $ toLazyByteString
416416 $ headers (httpVersion req) s hs False
417− return True
417+ return isPersist
418418 go s hs = chunk'
419419 $ E.enumList 1 [headers (httpVersion req) s hs isChunked']
420420 $$ E.joinI $ builderToByteString -- FIXME unsafeBuilderToByteString