From afb872d9f41b6ab1e4460c8aca37a8561d973543 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 20 Apr 2024 23:57:12 +0100 Subject: [PATCH] refactor: optimise web_pipe() to follow redirections but not resolve them --- quickget | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quickget b/quickget index fbd85c9..3830451 100755 --- a/quickget +++ b/quickget @@ -1416,9 +1416,7 @@ function check_hash() { # Download a file from the web and pipe it to stdout function web_pipe() { - local URL="" - URL=$(web_redirect "${1}") - curl --silent --location "${URL}" + curl --silent --location "${1}" } # Download a file from the web