Skip to content

Commit

Permalink
Add missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Apr 5, 2021
1 parent 0d74678 commit eeadc00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Go/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ type responseWriter struct {
wroteHeader bool
}

// wrapper for response writer
// based on https://blog.questionable.services/article/guide-logging-middleware-go/
func wrapResponseWriter(w http.ResponseWriter) *responseWriter {
return &responseWriter{ResponseWriter: w}
}
Expand Down

0 comments on commit eeadc00

Please sign in to comment.