Skip to content

Commit

Permalink
Merge pull request #76 from danielgtaylor/fix-vary-header
Browse files Browse the repository at this point in the history
fix: don't override vary header
  • Loading branch information
iwong-isp authored Nov 22, 2022
2 parents 1519e49 + a2efce0 commit 2f0f492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (w *contentEncodingWriter) Write(data []byte) (int, error) {
w.writer = br
}
w.Header().Set("Content-Encoding", w.encoding)
w.Header().Set("Vary", "Accept-Encoding")
w.Header().Add("Vary", "Accept-Encoding")
w.ResponseWriter.WriteHeader(w.status)
w.wroteHeader = true
bufData := w.buf.Bytes()
Expand Down

0 comments on commit 2f0f492

Please sign in to comment.