Skip to content

Commit 6ca564d

Browse files
committed
Checking in missing changes to make things work correctly on 0.8-devel
1 parent 794a0b9 commit 6ca564d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/network/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ if (Boost_FOUND)
4747
set(SERVER_TESTS
4848
hello_world
4949
http_async_server
50+
http_server_async_less_copy
5051
)
5152
foreach (test ${SERVER_TESTS})
5253
set_source_files_properties(${test}.cpp

libs/network/test/http_server_async_less_copy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct async_hello_world {
2323
struct is_content_length {
2424
template <class Header>
2525
bool operator()(Header const & header) {
26-
return boost::iequals(name(header), "content-length");
26+
return boost::iequals(header.name, "content-length");
2727
}
2828
};
2929

@@ -65,7 +65,7 @@ struct async_hello_world {
6565
int main(int argc, char * argv[]) {
6666
utils::thread_pool thread_pool(2);
6767
async_hello_world handler;
68-
server instance("127.0.0.1", "8000", handler, thread_pool, http::_reuse_address=true);
68+
server instance("127.0.0.1", "8000", handler, thread_pool);
6969
instance.run();
7070
return 0;
7171
}

0 commit comments

Comments
 (0)