Skip to content
Commit cb53401c authored by Ian Roberts's avatar Ian Roberts
Browse files

Don't use http.StripPrefix when a file: upstream has rewriteTarget

A regular (non-regex) file: upstream needs to strip the prefix so that it is equivalent to "mounting" the specified directory under the configured path in the URL space, but with regex rewriting the target path is determined by the rewriteTarget.

Fixes oauth2-proxy/oauth2-proxy#2242
parent b618ed71
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment