Skip to content

Commit

Permalink
Include the query strings when redirecting requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioluz committed Nov 7, 2023
1 parent 60447ad commit 2ef88ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scarf/Gateway/Rule/Docker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ redirectOrProxy request domain !capture ResponseBuilder {..}
| shouldRedirectDockerRequest request =
-- As with the Host header we have to respect the proxy protocol
-- when redirecting.
let !absoluteUrl = "https://" <> domain <> Wai.rawPathInfo request
let !absoluteUrl = "https://" <> domain <> Wai.rawPathInfo request <> Wai.rawQueryString request
in redirectTo capture absoluteUrl
| otherwise =
proxyTo (const capture) domain
Expand Down

0 comments on commit 2ef88ca

Please sign in to comment.