File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,6 @@ export class MongoBinaryDownload {
422422 downloadLocation ,
423423 tempDownloadLocation ,
424424 downloadUrl ,
425- httpOptions ,
426425 timeout
427426 ) ;
428427 } catch ( error : any ) {
@@ -465,7 +464,6 @@ export class MongoBinaryDownload {
465464 * @param downloadLocation The location the File should be after the download
466465 * @param tempDownloadLocation The location the File should be while downloading
467466 * @param downloadUrl The url as a string for error messages
468- * @param httpOptions The original unmodified `httpOptions`. TODO: this should likely be removed
469467 * @param timeout The time of inactivity(0bytes/second) after which the request is canceled
470468 * @private
471469 */
@@ -475,7 +473,6 @@ export class MongoBinaryDownload {
475473 downloadLocation : string ,
476474 tempDownloadLocation : string ,
477475 downloadUrl : string ,
478- httpOptions : RequestOptions ,
479476 timeout : number = 60000
480477 ) : Promise < string > {
481478 /** Offset to resume from; for now a non-0 value indicates to use file "append" mode */
@@ -586,7 +583,7 @@ export class MongoBinaryDownload {
586583 fileStream . on ( 'finish' , async ( ) => {
587584 if (
588585 this . dlProgress . current < this . dlProgress . length &&
589- ! httpOptions . path ?. endsWith ( '.md5' )
586+ ! useHttpsOptions . path ?. endsWith ( '.md5' )
590587 ) {
591588 reject (
592589 new DownloadError (
You can’t perform that action at this time.
0 commit comments