X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FResource.hs;h=c8ca45d00579daff37db145dc98b217ab1f1a3d9;hp=a54e04061c4ca9051a9cc4f71761a748d67e1153;hb=32a6ebbb18856ab1203e8a114414f235c2abe22b;hpb=a19fa7dbe9bfcd75db8b42e113fabcf97e40d8bd diff --git a/Network/HTTP/Lucu/Resource.hs b/Network/HTTP/Lucu/Resource.hs index a54e040..c8ca45d 100644 --- a/Network/HTTP/Lucu/Resource.hs +++ b/Network/HTTP/Lucu/Resource.hs @@ -913,7 +913,7 @@ outputChunk wholeChunk unless (Lazy.null wholeChunk) $ liftIO $ atomically $ - writeItr itrBodyIsNull False itr + writeItr itrSentNoBody False itr where sendChunks ∷ Lazy.ByteString → Int → Resource () sendChunks str limit @@ -977,7 +977,7 @@ driftTo newState = postprocess itr drift itr _ Done - = do bodyIsNull ← readItr itrBodyIsNull id itr + = do bodyIsNull ← readItr itrSentNoBody id itr when bodyIsNull $ writeDefaultPage itr