Revert to fprintf
This commit is contained in:
parent
7b7995dcab
commit
e1f18e7ef0
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)
|
||||||
w.Write(string(dat), paste, paste, s, ADDRESS, link)
|
fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue