Skip to content
Permalink
Browse files

πŸ› FIX: Gzip

  • Loading branch information...
austinginder committed Jan 31, 2019
1 parent e03fad5 commit eaf0da6d06c9f12c241c2c0c62c0cbbfdebffbf4
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 app/monitor-check
@@ -13,7 +13,7 @@ url=$1
run_command() {

# Run the health check. Return http_code and body.
response=$(curl -L --user-agent "$user_agent" --write-out "|%{num_redirects}|%{http_code}" --max-time 30 --silent $url)
response=$(curl -L --user-agent "$user_agent" --write-out "|%{num_redirects}|%{http_code}" --max-time 30 --compressed --silent $url)

# Pull out number of redirects
num_redirects=$( echo -e "$response" | perl -ne '/.*\|(\d+)\|(\d+)$/&& print $1' )

0 comments on commit eaf0da6

Please sign in to comment.
You can’t perform that action at this time.