From d3e7f04b609976f06bd565c6db01fa3215ac993a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 17 Jan 2025 12:59:48 -0500 Subject: cmd/uncle-ted: remove content-length? Signed-off-by: Xe Iaso --- cmd/uncle-ted/main.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd') diff --git a/cmd/uncle-ted/main.go b/cmd/uncle-ted/main.go index c3865ce..1f7d0e0 100644 --- a/cmd/uncle-ted/main.go +++ b/cmd/uncle-ted/main.go @@ -3,7 +3,6 @@ package main import ( _ "embed" "flag" - "fmt" "log" "log/slog" "net/http" @@ -31,7 +30,6 @@ func defenseHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") w.Header().Set("Content-Encoding", "gzip") w.Header().Set("Transfer-Encoding", "gzip") - w.Header().Set("Content-Length", fmt.Sprint(len(kaboom))) w.WriteHeader(http.StatusOK) w.Write(kaboom) -- cgit v1.2.3