You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/10/13 02:55:03 UTC

svn commit: r1397751 - /incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp

Author: benh
Date: Sat Oct 13 00:55:03 2012
New Revision: 1397751

URL: http://svn.apache.org/viewvc?rev=1397751&view=rev
Log:
Added a default value to process::http::OK.

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

Modified:
    incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp

Modified: incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp?rev=1397751&r1=1397750&r2=1397751&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/include/process/http.hpp Sat Oct 13 00:55:03 2012
@@ -73,12 +73,15 @@ struct Response
 
 struct OK : Response
 {
-  OK(const std::string& body = "") : Response(body)
+  OK(const std::string& body = "")
+    : Response(body)
   {
     status = "200 OK";
   }
 
-  OK(const JSON::Value& value, const Option<std::string>& jsonp) : Response()
+  OK(const JSON::Value& value,
+     const Option<std::string>& jsonp = Option<std::string>::none())
+    : Response()
   {
     status = "200 OK";