From 02e3e4561a9bd210927197c35407d06003ddad3e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 19 Dec 2024 00:05:24 +0900 Subject: [PATCH] changed X-Forwarded-Path-Prefix to X-Forwarded-Prefix --- server-proxy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server-proxy.go b/server-proxy.go index f773e81..42f4431 100644 --- a/server-proxy.go +++ b/server-proxy.go @@ -134,13 +134,13 @@ func mutate_proxy_req_headers(req *http.Request, newreq *http.Request, path_pref newhdr.Set("X-Forwarded-Path", req.URL.Path) } - v, ok = newhdr["X-Forwarded-Path-Prefix"] + v, ok = newhdr["X-Forwarded-Prefix"] if !ok { - newhdr.Set("X-Forwarded-Path-Prefix", path_prefix) + newhdr.Set("X-Forwarded-Prefix", path_prefix) } else { // TODO: how to multiple existing items... // there isn't supposed to be multiple items... - newhdr.Set("X-Forwarded-Path-Prefix", v[0] + path_prefix) + newhdr.Set("X-Forwarded-Prefix", v[0] + path_prefix) } } }