Merge pull request #2813 from lucab/ups/spec-json-binary
registry: fix binary JSON content-type
This commit is contained in:
@@ -80,7 +80,7 @@ func addTestFetch(repo string, dgst digest.Digest, content []byte, m *testutil.R
|
||||
func addTestCatalog(route string, content []byte, link string, m *testutil.RequestResponseMap) {
|
||||
headers := map[string][]string{
|
||||
"Content-Length": {strconv.Itoa(len(content))},
|
||||
"Content-Type": {"application/json; charset=utf-8"},
|
||||
"Content-Type": {"application/json"},
|
||||
}
|
||||
if link != "" {
|
||||
headers["Link"] = append(headers["Link"], link)
|
||||
@@ -1062,7 +1062,7 @@ func TestObtainsErrorForMissingTag(t *testing.T) {
|
||||
StatusCode: http.StatusNotFound,
|
||||
Body: errBytes,
|
||||
Headers: http.Header(map[string][]string{
|
||||
"Content-Type": {"application/json; charset=utf-8"},
|
||||
"Content-Type": {"application/json"},
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user