Browse Source

Fixed a bug where 3xx responses failed to retry

msmith-techempower 10 years ago
parent
commit
d218e3ad28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      toolset/setup/linux/bash_functions.sh

+ 2 - 2
toolset/setup/linux/bash_functions.sh

@@ -18,8 +18,8 @@ fw_get () {
   #  --trust-server-names "$@"
   #  --trust-server-names "$@"
   # DEPRECATED - older versions of wget use SSLv3 for handshaking
   # DEPRECATED - older versions of wget use SSLv3 for handshaking
   # and therefore don't work (Ubuntu12, for instance).
   # and therefore don't work (Ubuntu12, for instance).
-  # Use curl instead (-s means silent)
-  curl -s "$@"
+  # Use curl instead (-s means silent; -L means follow 3xx responses)
+  curl -sL "$@"
 
 
   # Ensure the background job is killed if we are
   # Ensure the background job is killed if we are
   kill $!; trap 'kill $!' SIGTERM
   kill $!; trap 'kill $!' SIGTERM