Skip to content

Commit fd459e3

Browse files
committed
Fixes cpp-netlib#42 : Defaulting to Asynchronous Client.
1 parent 4389238 commit fd459e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

boost/network/protocol/http/client.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ namespace boost { namespace network { namespace http {
7777

7878
};
7979

80-
typedef basic_client<tags::http_default_8bit_udp_resolve, 1, 0> client;
80+
#ifndef BOOST_NETWORK_HTTP_DEFAULT_TAG
81+
#define BOOST_NETWORK_HTTP_DEFAULT_TAG tags::http_async_8bit_udp_resolve
82+
#endif
83+
84+
typedef basic_client<BOOST_NETWORK_HTTP_DEFAULT_TAG, 1, 1> client;
8185

8286
} // namespace http
8387

0 commit comments

Comments
 (0)