mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #30262 from aaronlehmann/text-html
distribution: Add text/html and application/json as image mediatypes
This commit is contained in:
commit
f633764913
1 changed files with 4 additions and 0 deletions
|
@ -23,7 +23,11 @@ import (
|
||||||
var ImageTypes = []string{
|
var ImageTypes = []string{
|
||||||
schema2.MediaTypeImageConfig,
|
schema2.MediaTypeImageConfig,
|
||||||
// Handle unexpected values from https://github.com/docker/distribution/issues/1621
|
// Handle unexpected values from https://github.com/docker/distribution/issues/1621
|
||||||
|
// (see also https://github.com/docker/docker/issues/22378,
|
||||||
|
// https://github.com/docker/docker/issues/30083)
|
||||||
"application/octet-stream",
|
"application/octet-stream",
|
||||||
|
"application/json",
|
||||||
|
"text/html",
|
||||||
// Treat defaulted values as images, newer types cannot be implied
|
// Treat defaulted values as images, newer types cannot be implied
|
||||||
"",
|
"",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue