Skip to content

Commit

Permalink
fix missing content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
psycofdj committed Aug 18, 2021
1 parent 7a8f0f2 commit a70d608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregate_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func (a AggregateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
return true
})

w.WriteHeader(finalCode)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(finalCode)
marshaler := json.NewEncoder(w)
err := marshaler.Encode(finalMap)
if err != nil {
Expand Down

0 comments on commit a70d608

Please sign in to comment.