Skip to content

Commit

Permalink
Remove charset=utf-8 as this redundant for json
Browse files Browse the repository at this point in the history
  • Loading branch information
gobijan authored and razonyang committed Jun 29, 2021
1 parent e7b9301 commit c6295e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsend.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func Success(w http.ResponseWriter, data interface{}, statuses ...int) error {
//
// If necessary, the status code can be specified through the third parameter.
func Write(w http.ResponseWriter, body Body, statuses ...int) error {
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Header().Set("Content-Type", "application/json")

if len(statuses) > 0 {
w.WriteHeader(statuses[0])
Expand Down

0 comments on commit c6295e0

Please sign in to comment.