@@ -344,21 +344,21 @@ export class FileUploader {
344344 } ;
345345 xhr . onload = ( ) => {
346346 const headers = this . _parseHeaders ( xhr . getAllResponseHeaders ( ) ) ;
347- const response = this . _transformResponse ( xhr . response , headers ) ;
347+ const response = this . _transformResponse ( xhr . response ) ;
348348 const gist = this . _isSuccessCode ( xhr . status ) ? 'Success' : 'Error' ;
349349 const method = `_on${ gist } Item` ;
350350 ( this as any ) [ method ] ( item , response , xhr . status , headers ) ;
351351 this . _onCompleteItem ( item , response , xhr . status , headers ) ;
352352 } ;
353353 xhr . onerror = ( ) => {
354354 const headers = this . _parseHeaders ( xhr . getAllResponseHeaders ( ) ) ;
355- const response = this . _transformResponse ( xhr . response , headers ) ;
355+ const response = this . _transformResponse ( xhr . response ) ;
356356 this . _onErrorItem ( item , response , xhr . status , headers ) ;
357357 this . _onCompleteItem ( item , response , xhr . status , headers ) ;
358358 } ;
359359 xhr . onabort = ( ) => {
360360 const headers = this . _parseHeaders ( xhr . getAllResponseHeaders ( ) ) ;
361- const response = this . _transformResponse ( xhr . response , headers ) ;
361+ const response = this . _transformResponse ( xhr . response ) ;
362362 this . _onCancelItem ( item , response , xhr . status , headers ) ;
363363 this . _onCompleteItem ( item , response , xhr . status , headers ) ;
364364 } ;
@@ -446,7 +446,7 @@ export class FileUploader {
446446 return ( status >= 200 && status < 300 ) || status === 304 ;
447447 }
448448
449- protected _transformResponse ( response : string , headers : ParsedResponseHeaders ) : string {
449+ protected _transformResponse ( response : string ) : string {
450450 return response ;
451451 }
452452
0 commit comments