From f927c73d1da1b494c305122f29348195546afea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20=C5=9Eiar=20Baysal?= Date: Thu, 20 Jul 2023 20:16:03 +0300 Subject: [PATCH] json string --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2e27d2a..7689e42 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ func sendEpoch(w http.ResponseWriter, r *http.Request) { fmt.Println(err) } reqCounter.Inc() - fmt.Fprintf(w, "{\"host\": %s, \"type\": \"epoch\", \"data\": %d, \"unit\": \"sec\", \"rev\": %q}", hostname, epoch, Version) + fmt.Fprintf(w, "{\"host\": \"%s\", \"type\": \"epoch\", \"data\": %d, \"unit\": \"sec\", \"rev\": %q}", hostname, epoch, Version) } func main() {