Skip to content

Commit fbed6e2

Browse files
Update modules/httplib/serve.go
Co-authored-by: silverwind <[email protected]>
1 parent 2b011e7 commit fbed6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/httplib/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type ServeHeaderOptions struct {
4141
func ServeSetHeaders(w http.ResponseWriter, opts *ServeHeaderOptions) {
4242
header := w.Header()
4343

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

0 commit comments

Comments
 (0)