Use full json content type with charset parameter
This commit is contained in:
parent
83b899dab6
commit
71819ac9c3
6 changed files with 11 additions and 9 deletions
2
tags.go
2
tags.go
|
@ -47,6 +47,8 @@ func (th *tagsHandler) GetTags(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
|
||||
enc := json.NewEncoder(w)
|
||||
if err := enc.Encode(tagsAPIResponse{
|
||||
Name: th.Name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue