mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 08:57:40 +08: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
|
||||
}
|
||||
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user