Merge pull request #282 from vmarmol/content-type
Output correct content-type with API responses.
This commit is contained in:
commit
a0c97f660a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user