This is an automated email from the ASF dual-hosted git repository. qianzhang pushed a commit to branch 1.5.x in repository https://gitbox.apache.org/repos/asf/mesos.git
commit d69beeb182719e0bb8b9d75a45bc3fb96a59aa8f Author: Gilbert Song <[email protected]> AuthorDate: Sat Mar 23 20:54:08 2019 -0700 Added 'prettyjws' option to docker manifest V2 Schema1 accept header. Review: https://reviews.apache.org/r/70287 --- src/uri/fetchers/docker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uri/fetchers/docker.cpp b/src/uri/fetchers/docker.cpp index e1b6100..a5c0a03 100644 --- a/src/uri/fetchers/docker.cpp +++ b/src/uri/fetchers/docker.cpp @@ -689,7 +689,10 @@ Future<Nothing> DockerFetcherPluginProcess::fetch( // Note: The 'Accept' header is required for Amazon ECR. See: // https://forums.aws.amazon.com/message.jspa?messageID=780440 http::Headers manifestHeaders = { - {"Accept", "application/vnd.docker.distribution.manifest.v1+json"} + {"Accept", + "application/vnd.docker.distribution.manifest.v1+json," + "application/vnd.docker.distribution.manifest.v1+prettyjws" + } }; return curl(manifestUri, manifestHeaders + basicAuthHeaders, stallTimeout)
