Skip to content

Commit

Permalink
set passthrough=true on Flush()
Browse files Browse the repository at this point in the history
  • Loading branch information
muir committed Mar 15, 2022
1 parent c916c29 commit 5b168bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deferred.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (w *DeferredWriter) Flush() error {
if w.passthrough {
return errors.New("Attempt flush deferred writer that is not deferred")
}
w.passthrough = true
base := w.UnderlyingWriter()
if w.status != 0 {
base.WriteHeader(w.status)
Expand Down

0 comments on commit 5b168bf

Please sign in to comment.