Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 540ed76

Browse files
igorpeshanskydeanberris
authored andcommitted
Enable remove_chunk_markers by default. Fix a bug and add a comment.
1 parent e80404e commit 540ed76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boost/network/protocol/http/client/options.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class client_options {
3535
io_service_(),
3636
always_verify_peer_(true),
3737
timeout_(0),
38-
remove_chunk_markers_(false) {}
38+
remove_chunk_markers_(true) {}
3939

4040
client_options(client_options const& other)
4141
: cache_resolved_(other.cache_resolved_),
@@ -50,7 +50,7 @@ class client_options {
5050
io_service_(other.io_service_),
5151
always_verify_peer_(other.always_verify_peer_),
5252
timeout_(other.timeout_),
53-
remove_chunk_markers_(other.remove_chunk_markers) {}
53+
remove_chunk_markers_(other.remove_chunk_markers_) {}
5454

5555
client_options& operator=(client_options other) {
5656
other.swap(*this);
@@ -157,7 +157,7 @@ class client_options {
157157
return *this;
158158
}
159159

160-
/// Set an overall timeout for HTTP requests.
160+
/// Set whether we process chunked-encoded streams.
161161
client_options& remove_chunk_markers(bool v) {
162162
remove_chunk_markers_ = v;
163163
return *this;

0 commit comments

Comments
 (0)