Skip to content

Commit

Permalink
cmd/uncle-ted: starve them
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Jan 17, 2025
1 parent 58461fb commit 9f42902
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/uncle-ted/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ var (
func main() {
internal.HandleStartup()

http.Handle("/bee-movie", gziphandler.GzipHandler(http.HandlerFunc(beeMovie)))
beeMovieHDLR, err := gziphandler.GzipHandlerWithOpts(gziphandler.CompressionLevel(9))
if err != nil {
log.Fatal(err)
}

http.Handle("/bee-movie", beeMovieHDLR(http.HandlerFunc(beeMovie)))
http.HandleFunc("/gzip-bomb", gzipBomb)

slog.Info("started up", "url", "http://localhost"+*bind)
Expand Down

0 comments on commit 9f42902

Please sign in to comment.