Move from fprintf to write

This commit is contained in:
Eliot Whalan 2016-06-24 11:01:23 +10:00
parent 8da5425ada
commit a778ffdd33
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
} else {
dat, err := ioutil.ReadFile("assets/syntax.html")
check(err)
fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link)
w.Write(string(dat), paste, paste, s, ADDRESS, link)
}
}