Dispatch progress event when loading local file in HTTPRequest
This commit is contained in:
@@ -533,6 +533,7 @@ class NativeHTTPRequest {
|
||||
|
||||
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 });
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user