From fbed6e2ae2c4ae3968998cf9f9e626a338f717d8 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 2 May 2024 08:35:47 +0800 Subject: [PATCH] Update modules/httplib/serve.go Co-authored-by: silverwind --- modules/httplib/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/httplib/serve.go b/modules/httplib/serve.go index afda09c77d..95f47da9e4 100644 --- a/modules/httplib/serve.go +++ b/modules/httplib/serve.go @@ -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") }