Index: tools/dom/src/_HttpRequestUtils.dart |
diff --git a/tools/dom/src/_HttpRequestUtils.dart b/tools/dom/src/_HttpRequestUtils.dart |
index 36a46ec94ea7424a7bff24dcacf0285a22daa328..7ebd01f56ae4a8e3e682bf0762b23a84a3889684 100644 |
--- a/tools/dom/src/_HttpRequestUtils.dart |
+++ b/tools/dom/src/_HttpRequestUtils.dart |
@@ -8,18 +8,16 @@ class _HttpRequestUtils { |
// Helper for factory HttpRequest.get |
static HttpRequest get(String url, |
- onSuccess(HttpRequest request), |
+ onComplete(HttpRequest request), |
bool withCredentials) { |
final request = new HttpRequest(); |
request.open('GET', url, true); |
request.withCredentials = withCredentials; |
- // Status 0 is for local XHR request. |
request.on.readyStateChange.add((e) { |
- if (request.readyState == HttpRequest.DONE && |
- (request.status == 200 || request.status == 0)) { |
- onSuccess(request); |
+ if (request.readyState == HttpRequest.DONE) { |
+ onComplete(request); |
} |
}); |