Skip to content

Commit

Permalink
Dream.redirect: don't write location to body
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Jul 16, 2021
1 parent ee08358 commit b0f64df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pure/inmost.ml
Expand Up @@ -477,7 +477,7 @@ let redirect ?status ?code ?headers _request location =
| _ -> status
in
let status = (status :> status option) in
response ?status ?code ?headers location
response ?status ?code ?headers ""
|> with_header "Location" location
|> Lwt.return

Expand Down

0 comments on commit b0f64df

Please sign in to comment.