mirror of
https://github.com/distribution/distribution.git
synced 2025-09-09 02:40:00 +00:00
Merge pull request #2813 from lucab/ups/spec-json-binary
registry: fix binary JSON content-type
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
// and sets the content-type header to 'application/json'. It will handle
|
||||
// ErrorCoder and Errors, and if necessary will create an envelope.
|
||||
func ServeJSON(w http.ResponseWriter, err error) error {
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
var sc int
|
||||
|
||||
switch errs := err.(type) {
|
||||
|
Reference in New Issue
Block a user