Ensure the Content-Type is set for the streaming scheduler endpoint.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b3c18d6d Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b3c18d6d Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b3c18d6d Branch: refs/heads/master Commit: b3c18d6d6179ac34be89545dc3b8a9333c91ebb7 Parents: fe7f2f3 Author: Benjamin Mahler <[email protected]> Authored: Thu Aug 13 11:43:06 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Thu Aug 13 11:52:57 2015 -0700 ---------------------------------------------------------------------- src/master/http.cpp | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/b3c18d6d/src/master/http.cpp ---------------------------------------------------------------------- diff --git a/src/master/http.cpp b/src/master/http.cpp index 49c18ce..649aca0 100644 --- a/src/master/http.cpp +++ b/src/master/http.cpp @@ -394,6 +394,7 @@ Future<Response> Master::Http::scheduler(const Request& request) const Pipe pipe; OK ok; + ok.headers["Content-Type"] = stringify(responseContentType); ok.type = Response::PIPE; ok.reader = pipe.reader();
