Skip to content

Commit

Permalink
feat: enable compression in push-to-aspirecloud
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckadams committed Dec 27, 2024
1 parent 00b42cd commit 1dd4aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/bin/push-to-aspirecloud
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ KEY=${ASPIRECLOUD_ADMIN_API_KEY:?variable not defined}

CHUNK_SIZE=${CHUNK_SIZE:-50} # values > 100 are likely to run into POST size limits

CURL_ARGS=${CURL_ARGS:-'--compressed'}

function main() {
local type=$1
[[ $type = 'plugins' ]] || [[ $type = 'themes' ]] || die "Usage: $0 plugins|themes"
Expand Down Expand Up @@ -35,7 +37,7 @@ function upload() {
-H 'Content-Type: application/nljson' \
-H 'Accept: application/json' \
--data-binary @"$buffer" \
$CURL_EXTRA_ARGS \
$CURL_ARGS \
"$URL/v1/import" > /dev/null
cp /dev/null $buffer
}
Expand Down

0 comments on commit 1dd4aa5

Please sign in to comment.