From 9194c440ae26ff3d7cf1e0160eb9268287f8c26d Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 9 Jul 2016 14:40:48 +1000 Subject: [PATCH] Force raw to be text/plain --- pastebin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastebin.go b/pastebin.go index 68c9e96..6b64247 100644 --- a/pastebin.go +++ b/pastebin.go @@ -366,7 +366,7 @@ func rawHandler(w http.ResponseWriter, r *http.Request) { paste := vars["pasteId"] s, _ := getPaste(paste, "") - w.Header().Set("Content-Type", "plain/text") + w.Header().Set("Content-Type", "text/plain; charset=UTF-8; imeanit=yes") // simply write string to browser io.WriteString(w, s)