Skip to content

Commit

Permalink
json string
Browse files Browse the repository at this point in the history
  • Loading branch information
omersiar authored Jul 20, 2023
1 parent 481cdf9 commit f927c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f927c73

Please sign in to comment.