ipull
Version:
The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.
7 lines • 454 B
JavaScript
import HttpError from "./http-error.js";
export default class InvalidContentLengthError extends HttpError {
constructor(expectedLength, gotLength) {
super(`Expected ${expectedLength} bytes, but got ${gotLength} bytes. If you on browser try to set "ignoreIfRangeWithQueryParams" to true, this will add a "_ignore" query parameter to the URL to avoid chrome "if-range" header.`);
}
}
//# sourceMappingURL=invalid-content-length-error.js.map