summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPatrick Koenig <pkoenig10@gmail.com>2023-10-06 12:15:26 +0900
committerGitHub <noreply@github.com>2023-10-05 23:15:26 -0400
commit4feac4d83cd758c95194090d4f3468373ee342ef (patch)
tree73acb0c9fc48e8917cca0b4504863a28428d62ce /modules
parent82c356f2548ca62b75f76104bef44915482e8fd9 (diff)
reverseproxy: Allow fallthrough for response handlers without routes (#5780)
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/reverseproxy/reverseproxy.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/caddyhttp/reverseproxy/reverseproxy.go b/modules/caddyhttp/reverseproxy/reverseproxy.go
index f11c8e3..395530d 100644
--- a/modules/caddyhttp/reverseproxy/reverseproxy.go
+++ b/modules/caddyhttp/reverseproxy/reverseproxy.go
@@ -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 {