From a51e0159c598a2b101b9b8cc1b2ba1fd13c8eedd Mon Sep 17 00:00:00 2001 From: Jordy van Dortmont Date: Wed, 13 Apr 2022 20:38:27 +0200 Subject: [PATCH] FileLoader: Add response headers to progress callback --- src/loaders/FileLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/FileLoader.js b/src/loaders/FileLoader.js index d9a961805627b0..3c6fbdb37f4f2e 100644 --- a/src/loaders/FileLoader.js +++ b/src/loaders/FileLoader.js @@ -125,7 +125,7 @@ class FileLoader extends Loader { for ( let i = 0, il = callbacks.length; i < il; i ++ ) { const callback = callbacks[ i ]; - if ( callback.onProgress ) callback.onProgress( event ); + if ( callback.onProgress ) callback.onProgress( event, response.headers ); }