Skip to content

Commit

Permalink
Fix build with clang 3.5 (Apple LLVM 6.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed May 29, 2017
1 parent 9ecd76b commit 1949f24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/http/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ class Client : public HTTPClient
void _checkImpl(const zeroeq::http::Method method,
const std::string& request, const std::string& data,
const Response& expected, const int line,
std::map<std::string, std::string> requestHeaders = {})
const std::map<std::string, std::string> requestHeaders =
std::map<std::string, std::string>{})
{
HTTPClient::request request_(_baseURL + request);
for (const auto& h : requestHeaders)
Expand Down Expand Up @@ -652,7 +653,7 @@ BOOST_AUTO_TEST_CASE(handle_root)
zeroeq::http::Server server;

server.handle(zeroeq::http::Method::GET, "",
[this](const zeroeq::http::Request&) {
[](const zeroeq::http::Request&) {
return zeroeq::http::make_ready_response(
zeroeq::http::Code::OK, "homepage", "text/html");
});
Expand Down Expand Up @@ -714,7 +715,7 @@ BOOST_AUTO_TEST_CASE(handle_root_and_root_path)
zeroeq::http::Server server;
server.handle(zeroeq::http::Method::GET, "/", echoFunc);
server.handle(zeroeq::http::Method::GET, "",
[this](const zeroeq::http::Request&) {
[](const zeroeq::http::Request&) {
return zeroeq::http::make_ready_response(
zeroeq::http::Code::OK, "homepage", "text/html");
});
Expand Down

0 comments on commit 1949f24

Please sign in to comment.