Fix content-type header
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user