We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e9460 commit 09723ceCopy full SHA for 09723ce
src/util/MongoBinary.d.ts
@@ -10,6 +10,7 @@ export interface MongoBinaryOpts {
10
platform?: string;
11
arch?: string;
12
debug?: DebugPropT;
13
+ checkMD5?: boolean;
14
}
15
16
// disable error for a class with all static functions,
src/util/MongoBinaryDownload.js
@@ -223,7 +223,7 @@ export default class MongoBinaryDownload {
223
response.pipe(fileStream);
224
225
fileStream.on('finish', () => {
226
- if (this.dlProgress.current < 1000000) {
+ if (this.dlProgress.current < 1000000 && !httpOptions.path.endsWith('.md5')) {
227
const downloadUrl =
228
this._downloadingUrl || `https://${httpOptions.hostname}/${httpOptions.path}`;
229
reject(
0 commit comments