Compare commits
No commits in common. "6d362bcf227f562af8db13ebddde565faf4ef10c" and "d85ca37d54985cd8ef378890b78a974581cdca21" have entirely different histories.
6d362bcf22
...
d85ca37d54
1 changed files with 0 additions and 1 deletions
1
main.go
1
main.go
|
@ -32,7 +32,6 @@ 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 := db.HGet(ctx, clearPath, "content").Val()
|
pasteContent := db.HGet(ctx, clearPath, "content").Val()
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue