Skip to content

Commit 10f4461

Browse files
204/304 responses should not have content-length
Should fix #242 for 0.9.
1 parent 9bcb97d commit 10f4461

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snap-core.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: snap-core
2-
version: 0.9.7.2
2+
version: 0.9.8.0
33
synopsis: Snap: A Haskell Web Framework (core interfaces and types)
44

55
description:

src/Snap/Internal/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ fixupResponse req rsp = {-# SCC "fixupResponse" #-} do
978978
handle304 :: Response -> Response
979979
handle304 r = setResponseBody (enumBuilder mempty) $
980980
updateHeaders (H.delete "Transfer-Encoding") $
981-
setContentLength 0 r
981+
clearContentLength r
982982
{-# INLINE fixupResponse #-}
983983

984984

0 commit comments

Comments
 (0)