diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-17 13:22:02 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-17 13:22:02 -0500 |
| commit | 58461fb9a948abf87ee7b722a407f38fcf6f5c46 (patch) | |
| tree | 38856311a6ab6f0dd5678483e80f6ed7a6c5c9ac /cmd | |
| parent | 6f568d9c8e84b5f6d981215c1bc424bf90cbb217 (diff) | |
| download | x-58461fb9a948abf87ee7b722a407f38fcf6f5c46.tar.xz x-58461fb9a948abf87ee7b722a407f38fcf6f5c46.zip | |
cmd/uncle-ted: gzip the bee movie script
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/uncle-ted/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/uncle-ted/main.go b/cmd/uncle-ted/main.go index 7998a40..d0c6d60 100644 --- a/cmd/uncle-ted/main.go +++ b/cmd/uncle-ted/main.go @@ -7,6 +7,7 @@ import ( "log/slog" "net/http" + "github.com/NYTimes/gziphandler" "within.website/x/internal" ) @@ -23,7 +24,7 @@ var ( func main() { internal.HandleStartup() - http.HandleFunc("/bee-movie", beeMovie) + http.Handle("/bee-movie", gziphandler.GzipHandler(http.HandlerFunc(beeMovie))) http.HandleFunc("/gzip-bomb", gzipBomb) slog.Info("started up", "url", "http://localhost"+*bind) |
