mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-02 02:57:25 +01:00
fix(traefik): remove Content-Length header
HTTP/2 connections would fail to load when sending the `Content-Length` header Fixes #165
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user