Skip to content
Prev Previous commit
Removed setting chunk markers option to default value
  • Loading branch information
umennel committed Mar 31, 2018
commit 1117da4e7dac1a6877a033f57a0053feea6817d2
2 changes: 0 additions & 2 deletions libs/network/test/http/client_get_different_port_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);

TYPED_TEST(HTTPClientTest, GetDifferentPort) {
using client = TypeParam;
typename client::options options;
options.remove_chunk_markers(true);
client client_;
typename TypeParam::request request("http://www.boost.org:80/");
auto response_ = client_.get(request);
Expand Down
6 changes: 2 additions & 4 deletions libs/network/test/http/client_get_streaming_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ TYPED_TEST(HTTPClientTest, GetStreamingTest) {
typename TypeParam::string_type dummy_body;
body_handler handler_instance(body_string);
{
using client = TypeParam;
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
using client = TypeParam;
client client_;
ASSERT_NO_THROW(response = client_.get(request, handler_instance));
auto range = headers(response)["Content-Type"];
ASSERT_TRUE(!boost::empty(range));
Expand Down
12 changes: 3 additions & 9 deletions libs/network/test/http/client_get_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);
TYPED_TEST(HTTPClientTest, GetTest) {
using client = TypeParam;
typename client::request request("http://cpp-netlib.org/");
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
client client_;
typename client::response response;
ASSERT_NO_THROW(response = client_.get(request));
try {
Expand All @@ -36,9 +34,7 @@ TYPED_TEST(HTTPClientTest, GetTest) {
TYPED_TEST(HTTPClientTest, GetHTTPSTest) {
using client = TypeParam;
typename client::request request("https://www.github.com/");
typename client::options options;
options.remove_chunk_markers(true);
client client_(options);
client client_;
typename client::response response = client_.get(request);
EXPECT_TRUE(response.status() == 200 ||
(response.status() >= 300 && response.status() < 400));
Expand Down Expand Up @@ -81,9 +77,7 @@ TYPED_TEST(HTTPClientTest, TemporaryClientObjectTest) {
using client = TypeParam;
typename client::request request("http://cpp-netlib.org/");
typename client::response response;
typename client::options options;
options.remove_chunk_markers(true);
ASSERT_NO_THROW(response = client(options).get(request));
ASSERT_NO_THROW(response = client().get(request));
auto range = headers(response);
ASSERT_TRUE(!boost::empty(range));
try {
Expand Down