Skip to content

Commit

Permalink
feat: remove charset attr in apllicate/json
Browse files Browse the repository at this point in the history
  • Loading branch information
fatelei authored and VojtechVitek committed Mar 13, 2023
1 parent b30a1a0 commit c196354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responder.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func JSON(w http.ResponseWriter, r *http.Request, v interface{}) {
return
}

w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Header().Set("Content-Type", "application/json")
if status, ok := r.Context().Value(StatusCtxKey).(int); ok {
w.WriteHeader(status)
}
Expand Down

0 comments on commit c196354

Please sign in to comment.