Skip to content

Commit c5c2894

Browse files
christoph-zededaOhmSpectator
authored andcommitted
collect-info: do not use form-upload
as the upload is incomplete, because `-d` means `--data-ascii`, but we upload a tarball which is binary data, so curl messes it up Instead use `--data-binary` parameter which uses `application/octet-stream` Signed-off-by: Christoph Ostarek <christoph@zededa.com>
1 parent 13d699c commit c5c2894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/debug/scripts/collect-info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ echo "EVE info is collected into '$TARBALL_FILE'"
589589
if [ -n "$UPLOAD" ];
590590
then
591591
echo "Uploading tarball to $UPLOAD"
592-
curl --retry-all-errors --retry 10 --retry-delay 3 -s -d @"$TARBALL_FILE" -H "Authorization: $AUTHORIZATION" "$UPLOAD/$INFO_DIR_SUFFIX.tar.gz" && \
592+
curl --retry-all-errors --retry 10 --retry-delay 3 -s --data-binary @"$TARBALL_FILE" -H "Authorization: $AUTHORIZATION" "$UPLOAD/$INFO_DIR_SUFFIX.tar.gz" && \
593593
rm -f "$TARBALL_FILE"
594594
echo "Uploading tarball to $UPLOAD done"
595595
fi

0 commit comments

Comments
 (0)