Skip to content

Commit 6736a11

Browse files
committed
add content-type header
to avoid HTTP error 415 failures when patching new README
1 parent e7a7450 commit 6736a11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/docker.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ push_readme() {
2424
fi
2525

2626
local code=$(curl -s -o /dev/null -L -w "%{http_code}" \
27-
-X PATCH --data-urlencode \
28-
full_description@${input_file} \
27+
-X PATCH \
28+
--data-urlencode full_description@${input_file} \
29+
-H "Content-Type: application/json" \
2930
-H "Authorization: JWT ${token}" \
3031
${API_URL}/repositories/"${image}"/)
3132

0 commit comments

Comments
 (0)