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

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

Issue 59703010: Don't create lower-case copies of already lower-case header names, in http parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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_parser.dart
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart
index 31705f27ddcbbc575d6f1be7baf82e020e44d684..aada781add0bb1c460d7c8ff734537147326f21a 100644
--- a/sdk/lib/io/http_parser.dart
+++ b/sdk/lib/io/http_parser.dart
@@ -523,10 +523,10 @@ class _HttpParser
if (tokens[i].toLowerCase() == "upgrade") {
_connectionUpgrade = true;
}
- _headers.add(headerField, tokens[i]);
+ _headers._add(headerField, tokens[i]);
}
} else {
- _headers.add(headerField, headerValue);
+ _headers._add(headerField, headerValue);
}
_headerField.clear();
_headerValue.clear();
« 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