diff --git a/render/render.go b/render/render.go index cc67aff..809ef89 100644 --- a/render/render.go +++ b/render/render.go @@ -42,7 +42,7 @@ func writeHeader(w http.ResponseWriter, code int, contentType string) { } func (_ jsonRender) Render(w http.ResponseWriter, code int, data ...interface{}) error { - writeHeader(w, code, "application/xml") + writeHeader(w, code, "application/json") encoder := json.NewEncoder(w) return encoder.Encode(data[0]) }