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

Unified Diff: runtime/bin/http_impl.dart

Issue 10909057: Use correct cookie date parsing for cookie 'expires' field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | runtime/bin/http_utils.dart » ('j') | runtime/bin/http_utils.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index 25a448c970f8d2b806dd4e7139cb3047baace162..9b9a46d1f79b1662d4c1a691cb62c6dd49b5468e 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -534,7 +534,7 @@ class _Cookie implements Cookie {
value = parseAttributeValue();
}
if (name == "expires") {
- expires = _HttpUtils.parseDate(value, strict: false);
+ expires = _HttpUtils.parseCookieDate(value);
} else if (name == "max-age") {
maxAge = parseInt(value);
} else if (name == "domain") {
« no previous file with comments | « no previous file | runtime/bin/http_utils.dart » ('j') | runtime/bin/http_utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698