mirror of
https://github.com/fatedier/frp.git
synced 2025-04-24 16:51:27 +00:00
Merge 4732479d324e7b29c3589a0e898e403cbc98bf33 into f47d8ab97fd48b8ced82eb143bc52126db51a19e
This commit is contained in:
commit
d5937d83e4
@ -66,7 +66,8 @@ func NewHTTPReverseProxy(option HTTPReverseProxyOptions, vhostRouter *Routers) *
|
||||
req.URL.Scheme = "http"
|
||||
reqRouteInfo := req.Context().Value(RouteInfoKey).(*RequestRouteInfo)
|
||||
originalHost, _ := httppkg.CanonicalHost(reqRouteInfo.Host)
|
||||
|
||||
//recover clean by proxy https://cs.opensource.google/go/go/+/refs/tags/go1.23.4:src/net/http/httputil/reverseproxy.go;l=427
|
||||
req.URL.RawQuery = r.In.URL.RawQuery
|
||||
rc := req.Context().Value(RouteConfigKey).(*RouteConfig)
|
||||
if rc != nil {
|
||||
if rc.RewriteHost != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user