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 2015/07/02 21:18:49 UTC
mesos git commit: Added a UnsupportedMediaType HTTP Response.
Repository: mesos
Updated Branches:
refs/heads/master 6760601cb -> c31779787
Added a UnsupportedMediaType HTTP Response.
Review: https://reviews.apache.org/r/36072
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c3177978
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c3177978
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c3177978
Branch: refs/heads/master
Commit: c31779787ffa9459edb9d3671a82caa46b5ce8ba
Parents: 6760601
Author: Isabel Jimenez <co...@isabeljimenez.com>
Authored: Thu Jul 2 12:18:23 2015 -0700
Committer: Benjamin Mahler <be...@gmail.com>
Committed: Thu Jul 2 12:18:24 2015 -0700
----------------------------------------------------------------------
3rdparty/libprocess/include/process/http.hpp | 15 +++++++++++++++
1 file changed, 15 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c3177978/3rdparty/libprocess/include/process/http.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp
index 57f3ae5..2f89e7a 100644
--- a/3rdparty/libprocess/include/process/http.hpp
+++ b/3rdparty/libprocess/include/process/http.hpp
@@ -481,6 +481,21 @@ struct Conflict : Response
};
+struct UnsupportedMediaType : Response
+{
+ UnsupportedMediaType()
+ {
+ status = "415 Unsupported Media Type";
+ }
+
+ explicit UnsupportedMediaType(const std::string& body)
+ : Response(body)
+ {
+ status = "415 Unsupported Media Type";
+ }
+};
+
+
struct InternalServerError : Response
{
InternalServerError()