Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Zaytsev <[email protected]>
  • Loading branch information
colega committed May 26, 2022
1 parent 705540d commit a213562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/gziphandler/gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (w *GzipResponseWriter) Write(b []byte) (int, error) {
return w.startPlainWrite(len(b))
}

// Only continue if they didn't already choose an encoding or a known unhandled content length or type.
// Only continue if we handle the content type (or it's still unknown).
if handleContentType(w.contentTypes, ct) {
// If the current buffer is less than minSize and a Content-Length isn't set, then wait until we have more data.
if len(w.buf) < w.minSize && cl == 0 && !w.rejectsIdentity {
Expand Down

0 comments on commit a213562

Please sign in to comment.