Force raw to be text/plain

This commit is contained in:
Eliot Whalan 2016-07-09 14:40:48 +10:00
parent 005cdfac12
commit 9194c440ae
1 changed files with 1 additions and 1 deletions

View File

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