Index: sdk/lib/io/http_utils.dart |
diff --git a/sdk/lib/io/http_utils.dart b/sdk/lib/io/http_utils.dart |
index 9e236138c93ae4538e6ab0bcb4dd4d0d56fb4092..927691c825c0d783e09b4a990d3b440463228692 100644 |
--- a/sdk/lib/io/http_utils.dart |
+++ b/sdk/lib/io/http_utils.dart |
@@ -207,7 +207,7 @@ class _HttpUtils { |
String tmp = date.substring(index, pos); |
index = pos + separator.length; |
try { |
- int value = parseInt(tmp); |
+ int value = int.parse(tmp); |
return value; |
} on FormatException catch (e) { |
throw new HttpException("Invalid HTTP date $date"); |
@@ -300,7 +300,7 @@ class _HttpUtils { |
int toInt(String s) { |
int index = 0; |
for (; index < s.length && isDigit(s[index]); index++); |
- return parseInt(s.substring(0, index)); |
+ return int.parse(s.substring(0, index)); |
} |
var tokens = []; |