Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 8cc2653

Browse files
bgourliejbdeboer
authored andcommitted
fix(http_backend): don't swallow http request errors.
fixes #376 fixes #224
1 parent 99eab54 commit 8cc2653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core_dom/http.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class HttpBackend {
3333
mimeType: mimeType,
3434
requestHeaders: requestHeaders,
3535
sendData: sendData,
36-
onProgress: onProgress).then((x) => c.complete(x));
36+
onProgress: onProgress).then((x) => c.complete(x),
37+
onError: (e, stackTrace) => c.completeError(e, stackTrace));
3738
return c.future;
3839
}
3940
}

0 commit comments

Comments
 (0)