You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2019/04/05 05:55:58 UTC
[mesos] 01/08: Added 'prettyjws' option to docker manifest V2
Schema1 accept header.
This is an automated email from the ASF dual-hosted git repository.
gilbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 10d57420ccd27b13a02e48a475e7c77d4f4ed100
Author: Gilbert Song <so...@gmail.com>
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 a87d7f0..ffb5194 100644
--- a/src/uri/fetchers/docker.cpp
+++ b/src/uri/fetchers/docker.cpp
@@ -687,7 +687,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)