mirror of
https://github.com/distribution/distribution.git
synced 2025-09-16 15:21:37 +00:00
Merge pull request #2813 from lucab/ups/spec-json-binary
registry: fix binary JSON content-type
This commit is contained in:
@@ -896,7 +896,7 @@ func (app *App) nameRequired(r *http.Request) bool {
|
||||
func apiBase(w http.ResponseWriter, r *http.Request) {
|
||||
const emptyJSON = "{}"
|
||||
// Provide a simple /v2/ 200 OK response with empty json response.
|
||||
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(emptyJSON)))
|
||||
|
||||
fmt.Fprint(w, emptyJSON)
|
||||
|
Reference in New Issue
Block a user