Merge pull request #2813 from lucab/ups/spec-json-binary
registry: fix binary JSON content-type
This commit is contained in:
commit
c192a281f8
12 changed files with 135 additions and 135 deletions
|
@ -291,7 +291,7 @@ func statusResponse(w http.ResponseWriter, r *http.Request, status int, checks m
|
|||
}
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Header().Set("Content-Length", fmt.Sprint(len(p)))
|
||||
w.WriteHeader(status)
|
||||
if _, err := w.Write(p); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue