Skip to content

Commit f3c9e8f

Browse files
Update api.func (#2378)
1 parent 9981313 commit f3c9e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/api.func

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ post_to_api() {
3939
EOF
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() {
8787
EOF
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() {
115115
EOF
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

0 commit comments

Comments
 (0)