Move from fprintf to write
This commit is contained in:
parent
8da5425ada
commit
a778ffdd33
2
main.go
2
main.go
|
@ -248,7 +248,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
} else {
|
} else {
|
||||||
dat, err := ioutil.ReadFile("assets/syntax.html")
|
dat, err := ioutil.ReadFile("assets/syntax.html")
|
||||||
check(err)
|
check(err)
|
||||||
fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link)
|
w.Write(string(dat), paste, paste, s, ADDRESS, link)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue