reverseproxy: Allow fallthrough for response handlers without routes (#5780)

This commit is contained in:
Patrick Koenig 2023-10-06 12:15:26 +09:00 committed by GitHub
parent 82c356f254
commit 4feac4d83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -848,12 +848,6 @@ func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Request, origRe
break
}
// otherwise, if there are any routes configured, execute those as the
// actual response instead of what we got from the proxy backend
if len(rh.Routes) == 0 {
continue
}
// set up the replacer so that parts of the original response can be
// used for routing decisions
for field, value := range res.Header {