Force default to be text/plain
This commit is contained in:
parent
0f510852f8
commit
312e7452a0
|
@ -241,7 +241,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Redirect(w, r, b.URL, 301)
|
http.Redirect(w, r, b.URL, 301)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
w.Header().Set("Content-Type", "plain/text")
|
w.Header().Set("Content-Type", "text/plain; charset=UTF-8; imeanit=yes")
|
||||||
io.WriteString(w, b.URL+"\n")
|
io.WriteString(w, b.URL+"\n")
|
||||||
io.WriteString(w, "delete key: "+b.DELKEY+"\n")
|
io.WriteString(w, "delete key: "+b.DELKEY+"\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue