From 0f7e552c9ca83f1b30adc6129d6c213bf9d73428 Mon Sep 17 00:00:00 2001 From: patcher-ms <113395549+patcher-ms@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:34:27 +0100 Subject: [PATCH] fix(traefik): remove `Content-Length` header HTTP/2 connections would fail to load when sending the `Content-Length` header Fixes #165 --- plugins/traefik/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/traefik/main.go b/plugins/traefik/main.go index 2e2e51d..2cb6375 100644 --- a/plugins/traefik/main.go +++ b/plugins/traefik/main.go @@ -46,6 +46,5 @@ func (sm *SablierMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request func forward(resp *http.Response, rw http.ResponseWriter) { rw.Header().Set("Content-Type", resp.Header.Get("Content-Type")) - rw.Header().Set("Content-Length", resp.Header.Get("Content-Length")) io.Copy(rw, resp.Body) }