Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1861)

Unified Diff: net/http/http_server_properties.cc

Issue 1387363004: Disable HTTP/2 over NPN (with OpenSSL). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #7. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 1e3ccd234f0460a83a2b2efe6ac4f1bc139a1470..408ced8501b4d261d4b09fc83a223a8a0e821a6e 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -109,8 +109,10 @@ std::string AlternativeServiceInfo::ToString() const {
// static
void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) {
- ssl_config->next_protos.clear();
- ssl_config->next_protos.push_back(kProtoHTTP11);
+ ssl_config->alpn_protos.clear();
+ ssl_config->alpn_protos.push_back(kProtoHTTP11);
+ ssl_config->npn_protos.clear();
+ ssl_config->npn_protos.push_back(kProtoHTTP11);
}
} // namespace net
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698