ServeHTTP handles the reverse proxy request (fallback for non-intercepted routes)
(w http.ResponseWriter, r *http.Request)
| 142 | |
| 143 | // ServeHTTP handles the reverse proxy request (fallback for non-intercepted routes) |
| 144 | func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 145 | log.Debug().Msg("Forwarding to qBittorrent via reverse proxy") |
| 146 | h.proxy.ServeHTTP(w, r) |
| 147 | } |
| 148 | |
| 149 | // rewriteRequest modifies the outbound request to target the correct qBittorrent instance |
| 150 | func (h *Handler) rewriteRequest(pr *httputil.ProxyRequest) { |
no outgoing calls