Skip to content

Commit a0a517c

Browse files
committed
Added charset URF-8 to JSON renderer function
1 parent 8c8c7a4 commit a0a517c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

responder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func JSON(w http.ResponseWriter, r *http.Request, v interface{}) {
9999
return
100100
}
101101

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

0 commit comments

Comments
 (0)