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/04/26 21:15:43 UTC

mesos git commit: Concatenation for HTTP Headers.

Repository: mesos
Updated Branches:
  refs/heads/master 5ec64bec3 -> e121ef6fe


Concatenation for HTTP Headers.

Added http::Headers::operator+().

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


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

Branch: refs/heads/master
Commit: e121ef6febfd24573b020e587daf6e3a1919a1de
Parents: 5ec64be
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
Authored: Wed Apr 26 14:15:38 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Apr 26 14:15:38 2017 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/http.hpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e121ef6f/3rdparty/libprocess/include/process/http.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp
index 5c013ca..650b9d8 100644
--- a/3rdparty/libprocess/include/process/http.hpp
+++ b/3rdparty/libprocess/include/process/http.hpp
@@ -505,6 +505,13 @@ public:
         CaseInsensitiveHash,
         CaseInsensitiveEqual>::get(key);
   }
+
+  Headers operator+(const Headers& that) const
+  {
+    Headers result = *this;
+    result.insert(that.begin(), that.end());
+    return result;
+  }
 };