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

Unified Diff: net/http/http_basic_stream.cc

Issue 2299703003: Re-land: Only allow HTTP/0.9 support on default ports. (Closed)
Patch Set: Fix test Created 4 years, 4 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_basic_stream.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_stream.cc
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
index d7a9ce065646e27f190950139191610bc1d62643..227ca971ce215fc87690deaf0a7441135d148c62 100644
--- a/net/http/http_basic_stream.cc
+++ b/net/http/http_basic_stream.cc
@@ -14,8 +14,11 @@
namespace net {
HttpBasicStream::HttpBasicStream(std::unique_ptr<ClientSocketHandle> connection,
- bool using_proxy)
- : state_(std::move(connection), using_proxy) {}
+ bool using_proxy,
+ bool http_09_on_non_default_ports_enabled)
+ : state_(std::move(connection),
+ using_proxy,
+ http_09_on_non_default_ports_enabled) {}
HttpBasicStream::~HttpBasicStream() {}
@@ -60,7 +63,8 @@ HttpStream* HttpBasicStream::RenewStreamForAuth() {
// be extra-sure it doesn't touch the connection again, delete it here rather
// than leaving it until the destructor is called.
state_.DeleteParser();
- return new HttpBasicStream(state_.ReleaseConnection(), state_.using_proxy());
+ return new HttpBasicStream(state_.ReleaseConnection(), state_.using_proxy(),
+ state_.http_09_on_non_default_ports_enabled());
}
bool HttpBasicStream::IsResponseBodyComplete() const {
« no previous file with comments | « net/http/http_basic_stream.h ('k') | net/http/http_network_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698