Skip to content

Commit

Permalink
add responseWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
adoublef committed Feb 20, 2024
1 parent 2304e28 commit 977f635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/http/httputil/response_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (rw *response) Flush() {
}
}

// Wrap
// Wrap http.ResponseWriter into a ResponseWriter.
func Wrap(w http.ResponseWriter, r *http.Request) ResponseWriter {
if rw, ok := w.(ResponseWriter); ok {
return rw
Expand Down

0 comments on commit 977f635

Please sign in to comment.