Skip to content

Commit

Permalink
Invoke response handlers without routes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 committed Sep 6, 2023
1 parent 50cea4e commit 93ef5bb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/caddyhttp/reverseproxy/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93ef5bb

Please sign in to comment.