Dispatch progress event when loading local file in HTTPRequest
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user