diff options
author | 2024-04-19 11:43:20 -0700 | |
---|---|---|
committer | 2024-04-19 12:16:49 -0700 | |
commit | 2c4c845cd2b40cfd468868efff7d4ba350124b47 (patch) | |
tree | 9316a959d053fdd4201d00443df1712363a6234e /internal/ui/static_app_icon.go | |
parent | 2caabbe93986ee05024f4c313786d46f5f5e589b (diff) | |
download | v2-2c4c845cd2b40cfd468868efff7d4ba350124b47.tar.gz v2-2c4c845cd2b40cfd468868efff7d4ba350124b47.tar.zst v2-2c4c845cd2b40cfd468868efff7d4ba350124b47.zip |
http/response: add brotli compression support
Diffstat (limited to '')
-rw-r--r-- | internal/ui/static_app_icon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ui/static_app_icon.go b/internal/ui/static_app_icon.go index 668becd8..8a99fb62 100644 --- a/internal/ui/static_app_icon.go +++ b/internal/ui/static_app_icon.go @@ -31,12 +31,12 @@ func (h *handler) showAppIcon(w http.ResponseWriter, r *http.Request) { switch filepath.Ext(filename) { case ".png": + b.WithoutCompression() b.WithHeader("Content-Type", "image/png") case ".svg": b.WithHeader("Content-Type", "image/svg+xml") } - b.WithoutCompression() b.WithBody(blob) b.Write() }) |