Skip to content

Commit

Permalink
Update modules/httplib/serve.go
Browse files Browse the repository at this point in the history
Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
wxiaoguang and silverwind authored May 2, 2024
1 parent 2b011e7 commit fbed6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/httplib/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ServeHeaderOptions struct {
func ServeSetHeaders(w http.ResponseWriter, opts *ServeHeaderOptions) {
header := w.Header()

skipCompressionExts := container.SetOf(".gz", ".bz2", ".zip", ".xz", ".zst", ".deb", ".apk", ".jar", ".png", ".jpg")
skipCompressionExts := container.SetOf(".gz", ".bz2", ".zip", ".xz", ".zst", ".deb", ".apk", ".jar", ".png", ".jpg", ".webp")
if skipCompressionExts.Contains(path.Ext(opts.Filename)) {
w.Header().Add(gzhttp.HeaderNoCompression, "1")
}
Expand Down

0 comments on commit fbed6e2

Please sign in to comment.