You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2017/02/02 18:43:50 UTC

[2/3] mesos git commit: Fixed mesos test helper createBasicAuthHeaders() on http header.

Fixed mesos test helper createBasicAuthHeaders() on http header.

Fixed the initialization of http::Headers in mesos test helper.

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


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

Branch: refs/heads/master
Commit: 988b52039e8e052e0722deafc26c972c762e89ac
Parents: 95c177e
Author: Gilbert Song <so...@gmail.com>
Authored: Thu Feb 2 10:16:09 2017 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Feb 2 10:16:09 2017 -0800

----------------------------------------------------------------------
 src/tests/mesos.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/988b5203/src/tests/mesos.hpp
----------------------------------------------------------------------
diff --git a/src/tests/mesos.hpp b/src/tests/mesos.hpp
index 71e9197..ff83a9c 100644
--- a/src/tests/mesos.hpp
+++ b/src/tests/mesos.hpp
@@ -919,11 +919,11 @@ template <typename TCredential>
 inline process::http::Headers createBasicAuthHeaders(
     const TCredential& credential)
 {
-  return process::http::Headers{{
+  return process::http::Headers({{
       "Authorization",
       "Basic " +
         base64::encode(credential.principal() + ":" + credential.secret())
-  }};
+  }});
 }