From a778ffdd3322f57b4a32ee8c11a4d1d62c8e5804 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Fri, 24 Jun 2016 11:01:23 +1000 Subject: [PATCH] Move from fprintf to write --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e51d8a0..2a07887 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) - fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link) + w.Write(string(dat), paste, paste, s, ADDRESS, link) } }