Skip to content

Commit

Permalink
Fix order script to be compatible with curl below 8.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Nov 22, 2024
1 parent d32a780 commit 435029a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ request() {
--header "Accept: application/json"\
--header "Content-Type: application/json" \
--data "${data}" \
-w '\n%output{'$HTTP_CODE_FILE'}%{http_code}' \
"$@"
-w '%{stderr}%{http_code}' \
"$@" 2>$HTTP_CODE_FILE
set +x

http_code=$(cat "$HTTP_CODE_FILE")
Expand Down

0 comments on commit 435029a

Please sign in to comment.