add utf8 to response's header
This commit is contained in:
+1
-1
@@ -335,7 +335,7 @@ func renderJSONWithHTML(w http.ResponseWriter, r *http.Request, v interface{}) {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
if status, ok := r.Context().Value(render.StatusCtxKey).(int); ok {
|
||||
w.WriteHeader(status)
|
||||
}
|
||||
|
||||
@@ -45,3 +45,5 @@ GET https://demo.remark42.com/api/v1/count?site=remark&url=https://radio-t.com/p
|
||||
|
||||
### list commented posts
|
||||
GET https://demo.remark42.com/api/v1/list?site=remark
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user