@marcel91200 / caddy Mirror · read-only / commits / 4feac4d8
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 22:00 UTC

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

Patrick Koenig committed Oct 6, 2023 at 12:15 UTC 4feac4d83cd758c95194090d4f3468373ee342ef
1 file changed -6
modules/caddyhttp/reverseproxy/reverseproxy.go
-6
@@ -848,12 +848,6 @@ func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Request, origRe
848 break
849 }
850
851 - // otherwise, if there are any routes configured, execute those as the
852 - // actual response instead of what we got from the proxy backend
853 - if len(rh.Routes) == 0 {
854 - continue
855 - }
856 -
851 // set up the replacer so that parts of the original response can be
852 // used for routing decisions
853 for field, value := range res.Header {