Skip to content

Commit

Permalink
console logger HTTP status bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezaeftekhari committed Dec 28, 2022
1 parent 8659ab5 commit 017954f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions response_writer.go
Expand Up @@ -61,6 +61,7 @@ func (w *responseWriter) WriteHeader(code int) {
if code > 0 && w.status != code {
if w.Written() {
debugPrint("[WARNING] Headers were already written. Wanted to override status code %d with %d", w.status, code)
return
}
w.status = code
}
Expand Down

0 comments on commit 017954f

Please sign in to comment.