diff --git a/docker-compose.yaml b/docker-compose.yaml index 7de1486..c4a3e59 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,7 +9,7 @@ services: COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME} MULTIPLEXER_PORT: ${MULTIPLEXER_PORT} volumes: - - ./config.yaml.example:/config/config.yaml + - ./config.yaml.example:/root/config.yaml build: . develop: watch: diff --git a/qbittorrent/qbittorrent.go b/qbittorrent/qbittorrent.go index 4adf469..dd441df 100644 --- a/qbittorrent/qbittorrent.go +++ b/qbittorrent/qbittorrent.go @@ -253,7 +253,11 @@ func (i *Instance) PrepareRequest(r *http.Request) (newReq *http.Request) { newReq.Header.Set("Referer", i.URL.JoinPath("/").String()) newReq.Header.Del("Origin") newReq.Header.Del("Cookie") + newReq.Header.Del("Referer-Policy") newReq.Header.Del("Accept-Encoding") + newReq.Header.Del("X-Forwarded-Proto") + newReq.Header.Del("X-Forwarded-For") + newReq.Header.Del("X-Forwarded-Host") return