Use full json content type with charset parameter

This commit is contained in:
Stephen J Day 2014-12-30 20:09:45 -08:00
parent 83b899dab6
commit 71819ac9c3
6 changed files with 11 additions and 9 deletions

View file

@ -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,