Skip to content

Enable remove_chunk_markers by default. Fix a bug and add a comment. #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions boost/network/protocol/http/client/options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class client_options {
io_service_(),
always_verify_peer_(true),
timeout_(0),
remove_chunk_markers_(false) {}
remove_chunk_markers_(true) {}

client_options(client_options const& other)
: cache_resolved_(other.cache_resolved_),
Expand All @@ -50,7 +50,7 @@ class client_options {
io_service_(other.io_service_),
always_verify_peer_(other.always_verify_peer_),
timeout_(other.timeout_),
remove_chunk_markers_(other.remove_chunk_markers) {}
remove_chunk_markers_(other.remove_chunk_markers_) {}

client_options& operator=(client_options other) {
other.swap(*this);
Expand Down Expand Up @@ -157,7 +157,7 @@ class client_options {
return *this;
}

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