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

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

Issue 16256012: Don't change the case of cookie names and values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed warning found by analyzer Created 7 years, 6 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 | « no previous file | tests/standalone/io/http_cookie_test.dart » ('j') | 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 cabdfb019224f361180b2ceb4a137f339a0845c4..223b246cb8e8e55edd1d6691ee97cd7de7ba1d44 100644
--- a/sdk/lib/io/http_headers.dart
+++ b/sdk/lib/io/http_headers.dart
@@ -415,7 +415,7 @@ class _HttpHeaders implements HttpHeaders {
if (s[index] == " " || s[index] == "\t" || s[index] == "=") break;
index++;
}
- return s.substring(start, index).toLowerCase();
+ return s.substring(start, index);
}
String parseValue() {
@@ -424,7 +424,7 @@ class _HttpHeaders implements HttpHeaders {
if (s[index] == " " || s[index] == "\t" || s[index] == ";") break;
index++;
}
- return s.substring(start, index).toLowerCase();
+ return s.substring(start, index);
}
void expect(String expected) {
@@ -669,7 +669,7 @@ class _Cookie implements Cookie {
if (s[index] == "=") break;
index++;
}
- return s.substring(start, index).trim().toLowerCase();
+ return s.substring(start, index).trim();
}
String parseValue() {
@@ -678,7 +678,7 @@ class _Cookie implements Cookie {
if (s[index] == ";") break;
index++;
}
- return s.substring(start, index).trim().toLowerCase();
+ return s.substring(start, index).trim();
}
void expect(String expected) {
« no previous file with comments | « no previous file | tests/standalone/io/http_cookie_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698