Compare commits
2 commits
83b4f5fe04
...
1731efcc28
Author | SHA1 | Date | |
---|---|---|---|
1731efcc28 | |||
da1d1a1ef2 |
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -34,7 +34,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
|
|||
if UrlExist(clearPath) {
|
||||
if strings.HasSuffix(path, "/raw") {
|
||||
pasteContent := getContent(clearPath)
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
_, err := io.WriteString(w, pasteContent)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
|
Loading…
Reference in a new issue