Fix content-type header

This commit is contained in:
2025-01-17 19:34:49 +01:00
parent fde07b74fa
commit 729fbecae6
2 changed files with 5 additions and 0 deletions

View File

@ -342,5 +342,6 @@ func (app *application) GetElection(w http.ResponseWriter, r *http.Request, id i
return
}
w.Header().Set("Content-Type", "application/json")
w.Write(response)
}