Skip to content
Snippets Groups Projects
Verified Commit 90975e19 authored by jan.hamal.dvorak's avatar jan.hamal.dvorak
Browse files

Use 303 for redirects

parent 85cb4250
Branches
No related tags found
No related merge requests found
...@@ -892,12 +892,13 @@ where ...@@ -892,12 +892,13 @@ where
-- | -- |
-- Set the @Location@ header and response status to redirect the user -- Set the response status to 303 (See Other), that will cause the browser
-- elsewhere. -- to obtain the address specified in the supplied @Location@ header using
-- the @GET@ method.
-- --
redirect :: (MonadAction m) => Text -> m () redirect :: (MonadAction m) => Text -> m ()
redirect location = do redirect location = do
setStatus status302 setStatus status303
setHeader hLocation (cs location) setHeader hLocation (cs location)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment