Skip to content

Commit bcd9911

Browse files
umenneldeanberris
authored andcommitted
Removed setting chunk markers option to default value
1 parent 9318c1d commit bcd9911

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

libs/network/test/http/client_get_different_port_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);
1616

1717
TYPED_TEST(HTTPClientTest, GetDifferentPort) {
1818
using client = TypeParam;
19-
typename client::options options;
20-
options.remove_chunk_markers(true);
2119
client client_;
2220
typename TypeParam::request request("http://www.boost.org:80/");
2321
auto response_ = client_.get(request);

libs/network/test/http/client_get_streaming_test.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ TYPED_TEST(HTTPClientTest, GetStreamingTest) {
3232
typename TypeParam::string_type dummy_body;
3333
body_handler handler_instance(body_string);
3434
{
35-
using client = TypeParam;
36-
typename client::options options;
37-
options.remove_chunk_markers(true);
38-
client client_(options);
35+
using client = TypeParam;
36+
client client_;
3937
ASSERT_NO_THROW(response = client_.get(request, handler_instance));
4038
auto range = headers(response)["Content-Type"];
4139
ASSERT_TRUE(!boost::empty(range));

libs/network/test/http/client_get_test.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ TYPED_TEST_CASE(HTTPClientTest, ClientTypes);
1515
TYPED_TEST(HTTPClientTest, GetTest) {
1616
using client = TypeParam;
1717
typename client::request request("http://cpp-netlib.org/");
18-
typename client::options options;
19-
options.remove_chunk_markers(true);
20-
client client_(options);
18+
client client_;
2119
typename client::response response;
2220
ASSERT_NO_THROW(response = client_.get(request));
2321
try {
@@ -36,9 +34,7 @@ TYPED_TEST(HTTPClientTest, GetTest) {
3634
TYPED_TEST(HTTPClientTest, GetHTTPSTest) {
3735
using client = TypeParam;
3836
typename client::request request("https://www.github.com/");
39-
typename client::options options;
40-
options.remove_chunk_markers(true);
41-
client client_(options);
37+
client client_;
4238
typename client::response response = client_.get(request);
4339
EXPECT_TRUE(response.status() == 200 ||
4440
(response.status() >= 300 && response.status() < 400));
@@ -81,9 +77,7 @@ TYPED_TEST(HTTPClientTest, TemporaryClientObjectTest) {
8177
using client = TypeParam;
8278
typename client::request request("http://cpp-netlib.org/");
8379
typename client::response response;
84-
typename client::options options;
85-
options.remove_chunk_markers(true);
86-
ASSERT_NO_THROW(response = client(options).get(request));
80+
ASSERT_NO_THROW(response = client().get(request));
8781
auto range = headers(response);
8882
ASSERT_TRUE(!boost::empty(range));
8983
try {

0 commit comments

Comments
 (0)