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

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

Issue 532233002: Remove unused string interpolations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « runtime/lib/growable_array.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_headers.dart
diff --git a/sdk/lib/io/http_headers.dart b/sdk/lib/io/http_headers.dart
index 7a1c834c69c051b213c2d95e595c733fcf09555c..5ecddca1b1bcfaf01ff1de5c8b00a0a8459dfb4b 100644
--- a/sdk/lib/io/http_headers.dart
+++ b/sdk/lib/io/http_headers.dart
@@ -449,8 +449,7 @@ class _HttpHeaders implements HttpHeaders {
_updateHostHeader() {
bool defaultPort = _port == null || _port == _defaultPortForScheme;
- String portPart = defaultPort ? "" : ":$_port";
- _set("host", "$host$portPart");
+ _set("host", defaultPort ? host : "$host:$_port");
}
_foldHeader(String name) {
« no previous file with comments | « runtime/lib/growable_array.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698