mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-30 10:35:18 -04:00
proxy: handle encoded path in URL
fix issue #1362 Signed-off-by: Tw <tw19881113@gmail.com>
This commit is contained in:
@@ -273,11 +273,6 @@ func createUpstreamRequest(r *http.Request) *http.Request {
|
||||
outreq.Body = nil
|
||||
}
|
||||
|
||||
// Restore URL Path if it has been modified
|
||||
if outreq.URL.RawPath != "" {
|
||||
outreq.URL.Opaque = outreq.URL.RawPath
|
||||
}
|
||||
|
||||
// We are modifying the same underlying map from req (shallow
|
||||
// copied above) so we only copy it if necessary.
|
||||
copiedHeaders := false
|
||||
|
||||
Reference in New Issue
Block a user