Skip to content

Commit

Permalink
use lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed May 2, 2024
1 parent fbed6e2 commit d012049
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 @@ -42,7 +42,7 @@ func ServeSetHeaders(w http.ResponseWriter, opts *ServeHeaderOptions) {
header := w.Header()

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

Expand Down

0 comments on commit d012049

Please sign in to comment.