on master help sign in
No content-type for 304 responses
f20f7e4Michael Snoyman
wai-app-static/Network/Wai/Application/Static.hs+1−3
@@ -217,9 +217,7 @@ staticAppPieces ss rawPieces req = liftIO $ do
217 return $ fileToResponse file H.status200 headers
217 return $ fileToResponse file H.status200 headers
218
218
219 response NotModified =
219 response NotModified =
220− return $ W.responseLBS H.status304
220+ return $ W.responseLBS H.status304 [] ""
221− [ ("Content-Type", "text/plain")
222− ] "Not Modified"
223
221
224 response (SendContent mt lbs) = do
222 response (SendContent mt lbs) = do
225 -- TODO: set caching headers
223 -- TODO: set caching headers
wai-app-static/wai-app-static.cabal+1−1
@@ -1,5 +1,5 @@
1name: wai-app-static
1name: wai-app-static
2−version: 1.3.1.2
2+version: 1.3.1.3
3license: MIT
3license: MIT
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>
5author: Michael Snoyman <michael@snoyman.com>