Dispatch progress event when loading local file in HTTPRequest

This commit is contained in:
Joshua Granick
2018-08-08 15:39:12 -07:00
parent 381f18a791
commit 4c869ccd06

View File

@@ -533,6 +533,7 @@ class NativeHTTPRequest {
if (instance.bytes != null) { if (instance.bytes != null) {
threadPool.sendProgress ({ instance: instance, promise: instance.promise, bytesLoaded: instance.bytes.length, bytesTotal: instance.bytes.length });
threadPool.sendComplete ({ instance: instance, promise: instance.promise, result: instance.bytes }); threadPool.sendComplete ({ instance: instance, promise: instance.promise, result: instance.bytes });
} else { } else {