diff options
Diffstat (limited to 'api/rest.go')
-rw-r--r-- | api/rest.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/rest.go b/api/rest.go index a110019e..909fd541 100644 --- a/api/rest.go +++ b/api/rest.go @@ -195,6 +195,7 @@ func (rs *RestServer) Neighbor(w http.ResponseWriter, r *http.Request) { http.Error(w, errStr, http.StatusInternalServerError) return } + w.Header().Set("Content-Type", "application/json; charset=utf-8") w.Write(jns) } @@ -224,6 +225,7 @@ func (rs *RestServer) NeighborLocalRib(w http.ResponseWriter, r *http.Request) { } res := resInf.(*RestResponseDefault) + w.Header().Set("Content-Type", "application/json; charset=utf-8") w.Write(res.Data) } |