support responseHeaders.set for proxy type http (#4192)

This commit is contained in:
fatedier
2024-04-29 15:53:45 +08:00
committed by GitHub
parent d0d396becb
commit e81b36c5ba
9 changed files with 65 additions and 16 deletions

View File

@@ -58,6 +58,7 @@ func (pxy *HTTPProxy) Run() (remoteAddr string, err error) {
RewriteHost: pxy.cfg.HostHeaderRewrite,
RouteByHTTPUser: pxy.cfg.RouteByHTTPUser,
Headers: pxy.cfg.RequestHeaders.Set,
ResponseHeaders: pxy.cfg.ResponseHeaders.Set,
Username: pxy.cfg.HTTPUser,
Password: pxy.cfg.HTTPPassword,
CreateConnFn: pxy.GetRealConn,