From 96f1e3bef9e2054f7d619775ac59abdb88e12d54 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Wed, 12 Feb 2025 22:32:28 -0600 Subject: [PATCH] Set "Content-Type: application/json" --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index c94a3f2..7c546d3 100644 --- a/main.go +++ b/main.go @@ -57,6 +57,7 @@ func main() { }) http.HandleFunc("GET /api/sidewalks", func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(sidewalks) })