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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 208333015: Don't add ':443' to host header, when the connection is secure. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « sdk/lib/io/http_headers.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index cd96898c4f2fe14f19b4544904a99e32441cc32c..207c08d104d4d423ffcc6ea8c197f211c02aa1cc 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -416,11 +416,16 @@ abstract class _HttpOutboundMessage<T> extends _IOSinkImpl {
final _HttpHeaders headers;
- _HttpOutboundMessage(this._uri,
+ _HttpOutboundMessage(Uri uri,
String protocolVersion,
_HttpOutgoing outgoing)
: super(outgoing, null),
- headers = new _HttpHeaders(protocolVersion),
+ _uri = uri,
+ headers = new _HttpHeaders(
+ protocolVersion,
+ defaultPortForScheme: uri.scheme == 'https' ?
+ HttpClient.DEFAULT_HTTPS_PORT :
+ HttpClient.DEFAULT_HTTP_PORT),
_outgoing = outgoing {
_outgoing.outbound = this;
_encodingMutable = false;
« no previous file with comments | « sdk/lib/io/http_headers.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698