Skip to content

Commit

Permalink
fix(electron-updater): cannot download differentially..: Error: Maxim…
Browse files Browse the repository at this point in the history
…um allowed size is 5 MB

Close #3564
  • Loading branch information
develar committed Jul 1, 2019
1 parent 036a130 commit c5c2eeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/builder-util-runtime/src/httpExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Please double check that your authentication token is correct. Due to security r
if (contentLength != null) {
const size = parseInt(contentLength, 10)
if (size > 0) {
if (size > 5242880) {
callback(new Error("Maximum allowed size is 5 MB"))
if (size > 52428800) {
callback(new Error("Maximum allowed size is 50 MB"))
return
}

Expand All @@ -221,8 +221,8 @@ Please double check that your authentication token is correct. Due to security r
result = chunk
}
else {
if (result.length > 5242880) {
callback(new Error("Maximum allowed size is 5 MB"))
if (result.length > 52428800) {
callback(new Error("Maximum allowed size is 50 MB"))
return
}
result = Buffer.concat([result, chunk])
Expand Down

0 comments on commit c5c2eeb

Please sign in to comment.