nginx specific changes
This commit is contained in:
@@ -308,9 +308,11 @@ log_info "Step 4/5: Starting async deployment..."
|
|||||||
|
|
||||||
if [ ${#CURL_OPTS[@]} -gt 0 ]; then
|
if [ ${#CURL_OPTS[@]} -gt 0 ]; then
|
||||||
FINALIZE_RESPONSE=$(curl -s -X POST "$API_BASE/upload/finalize?uploadSessionId=$SESSION_ID&async=true" \
|
FINALIZE_RESPONSE=$(curl -s -X POST "$API_BASE/upload/finalize?uploadSessionId=$SESSION_ID&async=true" \
|
||||||
|
-H "Content-Length: 0" \
|
||||||
"${CURL_OPTS[@]}")
|
"${CURL_OPTS[@]}")
|
||||||
else
|
else
|
||||||
FINALIZE_RESPONSE=$(curl -s -X POST "$API_BASE/upload/finalize?uploadSessionId=$SESSION_ID&async=true")
|
FINALIZE_RESPONSE=$(curl -s -X POST "$API_BASE/upload/finalize?uploadSessionId=$SESSION_ID&async=true" \
|
||||||
|
-H "Content-Length: 0")
|
||||||
fi
|
fi
|
||||||
STATUS=$(echo "$FINALIZE_RESPONSE" | grep -o '"status":"[^"]*' | cut -d'"' -f4)
|
STATUS=$(echo "$FINALIZE_RESPONSE" | grep -o '"status":"[^"]*' | cut -d'"' -f4)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user