mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
fix: do not process URL redirection until after ISO file name stored
This commit is contained in:
parent
44d0d10c6e
commit
57eea29cb2
6
quickget
6
quickget
|
@ -1448,8 +1448,7 @@ function web_pipe() {
|
|||
|
||||
# Download a file from the web
|
||||
function web_get() {
|
||||
local URL=""
|
||||
URL=$(web_redirect "${1}")
|
||||
local URL="${1}"
|
||||
local DIR="${2}"
|
||||
local FILE=""
|
||||
local USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||
|
@ -1460,6 +1459,9 @@ function web_get() {
|
|||
FILE="${URL##*/}"
|
||||
fi
|
||||
|
||||
# Process any URL redirections after the file name has been extracted
|
||||
URL=$(web_redirect "${URL}")
|
||||
|
||||
while (( "$#" )); do
|
||||
if [[ $1 == --header ]]; then
|
||||
HEADERS+=("$1" "$2")
|
||||
|
|
Loading…
Reference in New Issue
Block a user