mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Merge pull request #183 from deepak1556/next_proto_patch
add list of next_protos to use
This commit is contained in:
@@ -330,6 +330,10 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
||||
network_session_params.http_auth_handler_factory =
|
||||
url_request_context_->http_auth_handler_factory();
|
||||
network_session_params.net_log = url_request_context_->net_log();
|
||||
net::NextProtoVector next_protos;
|
||||
next_protos.push_back(net::kProtoHTTP2);
|
||||
next_protos.push_back(net::kProtoHTTP11);
|
||||
network_session_params.next_protos = next_protos;
|
||||
|
||||
// --ignore-certificate-errors
|
||||
if (command_line.HasSwitch(switches::kIgnoreCertificateErrors))
|
||||
|
||||
Reference in New Issue
Block a user