Skip to content

Commit

Permalink
fix: Fix error handling (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonjek authored Oct 9, 2024
1 parent 17a9485 commit 7b7d147
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/web/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func CreateMiddlewareStack(ms ...Middleware) Middleware {
}

func (w *wrappedWriter) WriteHeader(sc int) {
w.ResponseWriter.WriteHeader(sc)
w.statusCode = sc
}

Expand Down

0 comments on commit 7b7d147

Please sign in to comment.