oauth2-proxy/pkg/upstream
Ian Roberts cb53401c3a 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
2024-09-02 11:27:28 +01:00
..
file.go Don't use http.StripPrefix when a file: upstream has rewriteTarget 2024-09-02 11:27:28 +01:00
file_test.go Don't use http.StripPrefix when a file: upstream has rewriteTarget 2024-09-02 11:27:28 +01:00
http.go Add support for unix socket as upstream (#1866) 2023-10-26 10:57:00 +01:00
http_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
proxy.go Don't use http.StripPrefix when a file: upstream has rewriteTarget 2024-09-02 11:27:28 +01:00
proxy_test.go Test for a file:/// upstream combined with regex path rewrite 2024-09-02 11:27:28 +01:00
rewrite.go Allow request paths to be rewritten before proxying to upstream server 2021-06-23 12:20:46 +01:00
rewrite_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
static.go Move Logging to Middleware Package (#1070) 2021-03-06 17:27:16 +00:00
static_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
upstream_suite_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00