Compare commits

..

No commits in common. "6d362bcf227f562af8db13ebddde565faf4ef10c" and "d85ca37d54985cd8ef378890b78a974581cdca21" have entirely different histories.

View file

@ -32,7 +32,6 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
if urlExist(clearPath) {
if strings.HasSuffix(path, "/raw") {
pasteContent := db.HGet(ctx, clearPath, "content").Val()
w.Header().Set("Content-Type", "text/plain")
_, err := io.WriteString(w, pasteContent)
if err != nil {
log.Println(err)