Merge pull request #282 from vmarmol/content-type

Output correct content-type with API responses.
This commit is contained in:
Vish Kannan 2014-10-28 09:30:16 -07:00
commit a0c97f660a

View File

@ -191,6 +191,7 @@ func writeResult(res interface{}, w http.ResponseWriter) error {
return fmt.Errorf("failed to marshall response %+v with error: %s", res, err)
}
w.Header().Set("Content-Type", "application/json")
w.Write(out)
return nil
}