aboutsummaryrefslogtreecommitdiff
path: root/cmd/xesite
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-10-25 17:03:18 -0400
committerXe Iaso <me@xeiaso.net>2023-10-25 17:03:18 -0400
commitf736765706c4b28946130929d4e5a7e0d28256d5 (patch)
tree044bfc0504a44dcbbdf04b1665112ae24379b0af /cmd/xesite
parent8ef825b08789ecdc65e216089fa26293c762bf49 (diff)
downloadxesite-f736765706c4b28946130929d4e5a7e0d28256d5.tar.xz
xesite-f736765706c4b28946130929d4e5a7e0d28256d5.zip
internal: add middleware to track the use of accept-encoding headers
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/xesite')
-rw-r--r--cmd/xesite/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/xesite/main.go b/cmd/xesite/main.go
index 3c0b2af..bf01514 100644
--- a/cmd/xesite/main.go
+++ b/cmd/xesite/main.go
@@ -120,6 +120,7 @@ func main() {
var h http.Handler = mux
h = internal.ClackSet(fs.Clacks()).Middleware(h)
h = internal.CacheHeader(h)
+ h = internal.AcceptEncodingMiddleware(h)
slog.Info("starting server", "bind", *bind)
log.Fatal(http.Serve(ln, h))