Force raw to be plain/text

This commit is contained in:
Eliot Whalan 2016-07-09 14:26:01 +10:00
parent 58052b5a9f
commit 005cdfac12

View File

@ -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)