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

Unified Diff: samples/chat/http_impl.dart

Issue 8292003: Total now reads mortgage sample from server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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
Index: samples/chat/http_impl.dart
diff --git a/samples/chat/http_impl.dart b/samples/chat/http_impl.dart
index a5c3b5b5a47322e7b3c4264999903e62803c5e1c..fdc48c79c60327121e22db1dbdf89aea8fe2616c 100644
--- a/samples/chat/http_impl.dart
+++ b/samples/chat/http_impl.dart
@@ -704,7 +704,7 @@ class HTTPRequestImplementation
_queryString = null;
} else {
_path = _uri.substring(0, position);
- _queryString = _uri.substringToEnd(position + 1);
+ _queryString = _uri.substring(position + 1);
// Simple parsing of the query string into request parameters.
// TODO(sgjesse): Handle all detail e.g. encoding.
@@ -719,7 +719,7 @@ class HTTPRequestImplementation
position = _queryString.indexOf("&", currentPosition);
String value;
if (position == -1) {
- value = _queryString.substringToEnd(currentPosition);
+ value = _queryString.substring(currentPosition);
currentPosition = _queryString.length;
} else {
value = _queryString.substring(currentPosition, position);

Powered by Google App Engine
This is Rietveld 408576698