@@ -14,19 +14,21 @@ namespace http = boost::network::http;
1414BOOST_AUTO_TEST_CASE_TEMPLATE (http_get_test_timeout_1_0, T, tag_types) {
1515typedef http::basic_client<T,1 ,0 > client;
1616typename client::requestrequest (" http://localhost:12121/" );
17- client client_;
1817typename client::response response_;
18+ client client_;
1919 boost::uint16_t port_ =port (request);
20+ typename client::response::string_type temp;
2021BOOST_CHECK_EQUAL (12121 , port_ );
21- BOOST_CHECK_THROW ( response_ = client_.get (request);body (response_); , std::exception );
22+ BOOST_CHECK_THROW ( response_ = client_.get (request);temp = body (response_); , std::exception );
2223}
2324
2425BOOST_AUTO_TEST_CASE_TEMPLATE (http_get_test_timeout_1_1, T, tag_types) {
2526typedef http::basic_client<T,1 ,1 > client_type;
2627typename client_type::requestrequest (" http://localhost:12121/" );
2728typename client_type::response response_;
2829 boost::uint16_t port_ =port (request);
30+ typename client_type::response::string_type temp;
2931BOOST_CHECK_EQUAL (12121 , port_ );
3032 client_type client_;
31- BOOST_CHECK_THROW ( response_ = client_.get (request);body (response_); , std::exception );
33+ BOOST_CHECK_THROW ( response_ = client_.get (request);temp = body (response_); , std::exception );
3234}