No content-type for 304 responses
commitf20f7e4b60955983087c235ffe8cc5ed181efe61
authorMichael Snoyman <michael@snoyman.com>
dateThu 16 May 2013, 13:30 (13 years ago)
parent29d7154
wai-app-static/Network/Wai/Application/Static.hs+1−3
@@ -217,9 +217,7 @@ staticAppPieces ss rawPieces req = liftIO $ do
217217 return $ fileToResponse file H.status200 headers
218218
219219 response NotModified =
220− return $ W.responseLBS H.status304
221− [ ("Content-Type", "text/plain")
222− ] "Not Modified"
220+ return $ W.responseLBS H.status304 [] ""
223221
224222 response (SendContent mt lbs) = do
225223 -- TODO: set caching headers
wai-app-static/wai-app-static.cabal+1−1
@@ -1,5 +1,5 @@
11name: wai-app-static
2−version: 1.3.1.2
2+version: 1.3.1.3
33license: MIT
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>