Navigation Menu

Skip to content

Commit

Permalink
204/304 responses should not have content-length
Browse files Browse the repository at this point in the history
Should fix #242 for 0.9.
  • Loading branch information
gregorycollins committed Aug 20, 2015
1 parent 9bcb97d commit 10f4461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snap-core.cabal
@@ -1,5 +1,5 @@
name: snap-core
version: 0.9.7.2
version: 0.9.8.0
synopsis: Snap: A Haskell Web Framework (core interfaces and types)

description:
Expand Down
2 changes: 1 addition & 1 deletion src/Snap/Internal/Types.hs
Expand Up @@ -978,7 +978,7 @@ fixupResponse req rsp = {-# SCC "fixupResponse" #-} do
handle304 :: Response -> Response
handle304 r = setResponseBody (enumBuilder mempty) $
updateHeaders (H.delete "Transfer-Encoding") $
setContentLength 0 r
clearContentLength r
{-# INLINE fixupResponse #-}


Expand Down

0 comments on commit 10f4461

Please sign in to comment.