Skip to content

Commit

Permalink
Merge pull request #7 from subeshb1/hot-fix/format
Browse files Browse the repository at this point in the history
Hot fix/format
  • Loading branch information
subeshb1 authored May 19, 2020
2 parents 78d7d34 + 40c3c6d commit 3aad02e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,19 @@ display_results() {
echo "${BOLD}$(color_response $status)$res${RESET}"
if [[ $HEADER_ONLY == 1 ]]; then
echo "HEADER:"
echo "$RESPONSE_HEADER" | jq -C
echo "$RESPONSE_HEADER" | jq -C '.'
else
if [[ $SHOW_HEADER == 1 ]]; then
echo "HEADER:"
echo "$RESPONSE_HEADER" | jq -C
echo "$RESPONSE_HEADER" | jq -C '.'
fi
if [[ $SILENT == 0 ]]; then
echo "BODY:"
echo "$RESPONSE_BODY" | jq -C
echo "$RESPONSE_BODY" | jq -C '.'
fi

fi
echo "META:"
echo "$META" | jq -C
echo "$META" | jq -C '.'
}

color_response() {
Expand Down

0 comments on commit 3aad02e

Please sign in to comment.