mirror of
https://codeberg.org/vlw/curl.git
synced 2026-04-13 02:39:38 +02:00
fix: print first line of response headers to cli
This commit is contained in:
parent
7b70a6e51d
commit
04da6c9ea8
1 changed files with 1 additions and 1 deletions
2
curl.sh
2
curl.sh
|
|
@ -73,4 +73,4 @@ eval $curl_cmd
|
|||
jq . $RESP_BODY_RAW_FILE > $RESP_BODY_JSON_FILE
|
||||
|
||||
# Print the response code
|
||||
echo -e -n "\e[0;94mResponse <\e[0m "; awk 'NR==1{print $2, $3; exit}' $RESP_HEADERS_FILE
|
||||
echo -e -n "\e[0;94mResponse <\e[0m "; head -n 1 $RESP_HEADERS_FILE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue