From e1f18e7ef085ccf0ba071d79157f01e18cb62d6b Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Fri, 24 Jun 2016 11:06:29 +1000 Subject: [PATCH] Revert to fprintf --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index aecbd90..c265f83 100644 --- a/main.go +++ b/main.go @@ -248,7 +248,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { } else { dat, err := ioutil.ReadFile("assets/syntax.html") check(err) - w.Write(string(dat), paste, paste, s, ADDRESS, link) + fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link) } }