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.
This commit is contained in:
parent
ad925bc388
commit
f457faa041
1 changed files with 1 additions and 1 deletions
2
main.go
2
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.
|
||||
|
|
Loading…
Reference in a new issue