mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-13 14:12:57 +00:00
Fix the gzip level for image uploads to a good perf/size balance
This commit is contained in:
parent
df3c5ca07f
commit
cf7bf2cb7d
@ -113,7 +113,9 @@ performUpload = function(imageStream, token, username, url, appName, logStreams)
|
||||
auth: {
|
||||
bearer: token
|
||||
},
|
||||
body: streamWithProgress.pipe(zlib.createGzip())
|
||||
body: streamWithProgress.pipe(zlib.createGzip({
|
||||
level: 6
|
||||
}))
|
||||
});
|
||||
return uploadToPromise(uploadRequest, logStreams);
|
||||
};
|
||||
|
@ -80,7 +80,9 @@ performUpload = (imageStream, token, username, url, appName, logStreams) ->
|
||||
'Content-Encoding': 'gzip'
|
||||
auth:
|
||||
bearer: token
|
||||
body: streamWithProgress.pipe(zlib.createGzip())
|
||||
body: streamWithProgress.pipe(zlib.createGzip({
|
||||
level: 6
|
||||
}))
|
||||
|
||||
uploadToPromise(uploadRequest, logStreams)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user