http: Wrap the recorder instead of the actual response writer

This commit is contained in:
Sasha Koshka 2024-12-08 01:55:02 -05:00
parent 6f635825a9
commit efb1f455c9

View File

@ -124,7 +124,7 @@ func (this *Handler) serveDocument (
// execute document
data := HTTPData { }
data.Res = WrappedResponseWriter {
responseWriter: res,
responseWriter: &recorder,
resetFunc: resetRecorder,
Header: WrappedHeader {
Header: recorder.Header(),