fix: add Expect header to asset upload request in Gitea release process
Some checks failed
Release Electron App / release-desktop (push) Failing after 12m43s
Some checks failed
Release Electron App / release-desktop (push) Failing after 12m43s
This commit is contained in:
@@ -89,6 +89,7 @@ jobs:
|
|||||||
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
|
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: token ${TOKEN}" \
|
-H "Authorization: token ${TOKEN}" \
|
||||||
|
-H "Expect:" \
|
||||||
-F "attachment=@${file}" \
|
-F "attachment=@${file}" \
|
||||||
"${GITEA_URL}/api/v1/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${encoded_name}")
|
"${GITEA_URL}/api/v1/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${encoded_name}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user