diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 19:34:24 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 19:34:43 -0700 |
| commit | 1959d7e9eadd57490e051d3e0a19407afcae2a09 (patch) | |
| tree | 86df05dc6437e4a40655a9ff7d1943324f5dff73 | |
| parent | Create static templates after parsing flags (diff) | |
| download | roseh.moe-1959d7e9eadd57490e051d3e0a19407afcae2a09.tar.zst | |
Rely on content sniffing for static templates
| -rw-r--r-- | roseh.moe.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go index 5be22ce..aa2da29 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -209,7 +209,6 @@ type staticHandler struct { } func (h *staticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("ETag", h.eTag) http.ServeContent(w, r, "", time.Time{}, strings.NewReader(h.content)) } |
