File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ post_to_api() {
3939EOF
4040)
4141
42- RESPONSE=$(curl -s -o response.txt - w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
42+ RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
4343 -H "Content-Type: application/json" \
4444 -d "$JSON_PAYLOAD") || true
4545}
@@ -87,7 +87,7 @@ post_to_api_vm() {
8787EOF
8888)
8989
90- RESPONSE=$(curl -s -o response.txt - w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
90+ RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
9191 -H "Content-Type: application/json" \
9292 -d "$JSON_PAYLOAD") || true
9393}
@@ -115,7 +115,7 @@ post_update_to_api() {
115115EOF
116116)
117117
118- RESPONSE=$(curl -s -o response.txt - w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
118+ RESPONSE=$(curl -s -w "%{http_code}" -L -X POST "$API_URL" --post301 --post302 \
119119 -H "Content-Type: application/json" \
120120 -d "$JSON_PAYLOAD") || true
121121
You can’t perform that action at this time.
0 commit comments