aboutsummaryrefslogtreecommitdiff
path: root/cmd/uncle-ted
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-17 12:59:48 -0500
committerXe Iaso <me@xeiaso.net>2025-01-17 12:59:48 -0500
commitd3e7f04b609976f06bd565c6db01fa3215ac993a (patch)
tree19cc41115b6897c95dab6ba0870a8aa99d236ec2 /cmd/uncle-ted
parentf429e9960430d852f6a125406cd1ae46c69837c1 (diff)
downloadx-d3e7f04b609976f06bd565c6db01fa3215ac993a.tar.xz
x-d3e7f04b609976f06bd565c6db01fa3215ac993a.zip
cmd/uncle-ted: remove content-length?
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/uncle-ted')
-rw-r--r--cmd/uncle-ted/main.go2
1 files changed, 0 insertions, 2 deletions
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)