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