You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/04/25 23:15:26 UTC

[10/24] mesos git commit: Handled chunked responses in docker URI fetcher.

Handled chunked responses in docker URI fetcher.

This is because if the response is chunked, curl will output the
dechunked version. That will confuse the http response decoder because
the header shows that it is chunked.

Review: https://reviews.apache.org/r/44944/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/987b5a2e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/987b5a2e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/987b5a2e

Branch: refs/heads/0.28.x
Commit: 987b5a2e149ade6ae30d04d79b6c228c693b088d
Parents: 5b2aa00
Author: Jie Yu <yu...@gmail.com>
Authored: Thu Mar 17 08:48:22 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Apr 5 15:10:16 2016 -0700

----------------------------------------------------------------------
 src/uri/fetchers/docker.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/987b5a2e/src/uri/fetchers/docker.cpp
----------------------------------------------------------------------
diff --git a/src/uri/fetchers/docker.cpp b/src/uri/fetchers/docker.cpp
index 2ceee19..fbfc96c 100644
--- a/src/uri/fetchers/docker.cpp
+++ b/src/uri/fetchers/docker.cpp
@@ -99,7 +99,8 @@ static Future<http::Response> curl(
     "-s",       // Don’t show progress meter or error messages.
     "-S",       // Make curl show an error message if it fails.
     "-L",       // Follow HTTP 3xx redirects.
-    "-D", "-",  // Write the protocol headers to stdout.
+    "-i",       // Include the HTTP-header in the output.
+    "--raw",    // Disable HTTP decoding of content or transfer encodings.
   };
 
   // Add additional headers.