Enable Brotli encoding (issue #2303)

This commit is contained in:
Marshall Greenblatt 2017-11-15 17:21:34 -05:00
parent a07174604d
commit d665578c51
2 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,7 @@ net::URLRequestContext* CefURLRequestContextGetterImpl::GetURLRequestContext() {
io_state_->url_request_context_.reset(new CefURLRequestContextImpl()); io_state_->url_request_context_.reset(new CefURLRequestContextImpl());
io_state_->url_request_context_->set_net_log(io_state_->net_log_); io_state_->url_request_context_->set_net_log(io_state_->net_log_);
io_state_->url_request_context_->set_enable_brotli(true);
io_state_->storage_.reset(new net::URLRequestContextStorage( io_state_->storage_.reset(new net::URLRequestContextStorage(
io_state_->url_request_context_.get())); io_state_->url_request_context_.get()));

View File

@ -21,6 +21,7 @@ CefURLRequestContextProxy::CefURLRequestContextProxy(
// All other values refer to the parent request context. // All other values refer to the parent request context.
set_net_log(parent->net_log()); set_net_log(parent->net_log());
set_enable_brotli(parent->enable_brotli());
set_host_resolver(parent->host_resolver()); set_host_resolver(parent->host_resolver());
set_cert_verifier(parent->cert_verifier()); set_cert_verifier(parent->cert_verifier());
set_transport_security_state(parent->transport_security_state()); set_transport_security_state(parent->transport_security_state());