Skip to content

Commit

Permalink
fix: extend http file limit (#5843)
Browse files Browse the repository at this point in the history
Related to #4676 and propably some more
As an electron app takes up more than 50 MB pretty easily updater stops working due to the chunk size limit.
  • Loading branch information
mariusraht1 authored May 3, 2021
1 parent 4e2909c commit 9305fef
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 @@ -218,8 +218,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 > 52428800) {
callback(new Error("Maximum allowed size is 50 MB"))
if (size > 524288000) {
callback(new Error("Maximum allowed size is 500 MB"))
return
}

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

0 comments on commit 9305fef

Please sign in to comment.