From 7e02cd4ecd36a8191da981cc98fc07e3f9ecad39 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 9 Jul 2016 14:44:48 +1000 Subject: [PATCH] Force default to be text/plain --- pastebin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastebin.go b/pastebin.go index 6b64247..c8ce8e9 100644 --- a/pastebin.go +++ b/pastebin.go @@ -241,7 +241,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, b.URL, 301) default: - w.Header().Set("Content-Type", "plain/text") + w.Header().Set("Content-Type", "text/plain; charset=UTF-8; imeanit=yes") io.WriteString(w, b.URL+"\n") io.WriteString(w, "delete key: "+b.DELKEY+"\n") }