Force raw to be text/plain
This commit is contained in:
parent
9e71bc7039
commit
0f510852f8
|
@ -366,7 +366,7 @@ func rawHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
paste := vars["pasteId"]
|
paste := vars["pasteId"]
|
||||||
s, _ := getPaste(paste, "")
|
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
|
// simply write string to browser
|
||||||
io.WriteString(w, s)
|
io.WriteString(w, s)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue