mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-30 19:55:04 -04:00
reverseproxy: Allow fallthrough for response handlers without routes (#5780)
This commit is contained in:
parent
82c356f254
commit
4feac4d83c
@ -848,12 +848,6 @@ func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Request, origRe
|
|||||||
break
|
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
|
// set up the replacer so that parts of the original response can be
|
||||||
// used for routing decisions
|
// used for routing decisions
|
||||||
for field, value := range res.Header {
|
for field, value := range res.Header {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user