Compare commits

..

No commits in common. "1731efcc289a40747fd178aa6feffaca7e78dca2" and "83b4f5fe041d11caca936b12ad1ca5540dfc3f19" have entirely different histories.

View file

@ -34,7 +34,7 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
if UrlExist(clearPath) { if UrlExist(clearPath) {
if strings.HasSuffix(path, "/raw") { if strings.HasSuffix(path, "/raw") {
pasteContent := getContent(clearPath) pasteContent := getContent(clearPath)
w.Header().Set("Content-Type", "text/plain; charset=utf-8") w.Header().Set("Content-Type", "text/plain")
_, err := io.WriteString(w, pasteContent) _, err := io.WriteString(w, pasteContent)
if err != nil { if err != nil {
log.Println(err) log.Println(err)