forked from lix-project/lix
* Handle weird cases when the server redirects us while setting a cookie.
This commit is contained in:
parent
1073b1780a
commit
cafaceb707
|
@ -48,7 +48,7 @@ if test -z "$finalPath"; then
|
||||||
mkdir $tmpPath
|
mkdir $tmpPath
|
||||||
|
|
||||||
# Perform the download.
|
# Perform the download.
|
||||||
@curl@ --fail --location --max-redirs 20 --disable-epsv "$url" > $tmpFile
|
@curl@ --fail --location --max-redirs 20 --disable-epsv --cookie-jar $tmpPath/cookies "$url" > $tmpFile
|
||||||
|
|
||||||
# Compute the hash.
|
# Compute the hash.
|
||||||
hash=$(@bindir@/nix-hash --type "$hashType" $hashFormat --flat $tmpFile)
|
hash=$(@bindir@/nix-hash --type "$hashType" $hashFormat --flat $tmpFile)
|
||||||
|
|
Loading…
Reference in a new issue