diff --git a/internal/web/middleware.go b/internal/web/middleware.go index e7ce645..dc51096 100644 --- a/internal/web/middleware.go +++ b/internal/web/middleware.go @@ -26,6 +26,7 @@ func CreateMiddlewareStack(ms ...Middleware) Middleware { } func (w *wrappedWriter) WriteHeader(sc int) { + w.ResponseWriter.WriteHeader(sc) w.statusCode = sc }