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; |