Use a 302 instead of 301 redirect in wai-app-static
commit33dc9c1846221f2ca3a86856b4f44f1548dd8527
authorMichael <michael@snoyman.com>
dateTue 13 Dec 2011, 13:50 (15 years ago)
parent711c974
wai-app-static/Network/Wai/Application/Static.hs+1−1
@@ -630,7 +630,7 @@ staticAppPieces ss pieces req = liftIO $ do
630630 Just hash -> replace "etag" (Just hash) (W.queryString req)
631631 Nothing -> remove "etag" (W.queryString req)
632632
633− return $ W.responseLBS H.status301
633+ return $ W.responseLBS H.status302
634634 [ ("Content-Type", "text/plain")
635635 , ("Location", S8.append loc $ H.renderQuery True qString)
636636 ] "Redirect"
wai-app-static/wai-app-static.cabal+1−1
@@ -1,5 +1,5 @@
11name: wai-app-static
2−version: 0.3.5.1
2+version: 0.3.5.2
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>
warp-static/warp-static.cabal+1−1
@@ -16,7 +16,7 @@ Executable warp
1616 Main-is: warp.hs
1717 Build-depends: base >= 4 && < 5
1818 , warp >= 0.4 && < 0.5
19− , wai-app-static >= 0.3 && < 0.4
19+ , wai-app-static >= 0.3.5.2 && < 0.4
2020 , wai-extra >= 0.4 && < 0.5
2121 , cmdargs >= 0.6.7
2222 , directory >= 1.0