Merge pull request #540 from pi-hole/bugfix/curl-redirect

Have `curl` auto-redirect
This commit is contained in:
Mcat12 2016-06-26 13:42:40 -04:00 committed by GitHub
commit 4e95f4678f

View file

@ -152,7 +152,7 @@ function gravity_transport() {
fi fi
# Silently curl url # Silently curl url
curl -s $cmd_ext $heisenbergCompensator -A "$agent" $url > $patternBuffer curl -s -L $cmd_ext $heisenbergCompensator -A "$agent" $url > $patternBuffer
# Check for list updates # Check for list updates
gravity_patternCheck "$patternBuffer" gravity_patternCheck "$patternBuffer"
# Cleanup # Cleanup