From f457faa0418fe18d328c196d405b0279dade1038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20M=C3=BCller-Downing?= Date: Sun, 5 Jan 2025 16:13:25 +1100 Subject: [PATCH] Uses Fprint instead of Fprintf Fprintf causes rendering errors because it expects to interpret specific characters strings, e.g. %2B, and replace with variables. When these variables don't exist, `(MISSING)` is printed. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 78e9e3e..8c91468 100644 --- a/main.go +++ b/main.go @@ -94,7 +94,7 @@ func handler(w http.ResponseWriter, r *http.Request) { newLine := "\n" // Write frames - fmt.Fprintf(w, clearScreen+frames.GetFrame(i)+newLine) + fmt.Fprint(w, clearScreen+frames.GetFrame(i)+newLine) i++ // Send some data.