Error when accesslog and error pages

This commit is contained in:
Ludovic Fernandez 2018-05-14 10:38:03 +02:00 committed by Traefiker Bot
parent a2a0c80acb
commit 67847c3117
3 changed files with 14 additions and 9 deletions

View file

@ -99,7 +99,8 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request, next http.
utils.CopyHeaders(pageReq.Header, req.Header)
utils.CopyHeaders(w.Header(), recorder.Header())
w.WriteHeader(recorder.GetCode())
h.backendHandler.ServeHTTP(w, pageReq)
h.backendHandler.ServeHTTP(w, pageReq.WithContext(req.Context()))
return
}
}