From cafaceb70721e9a5aea478501eb3b572bbacaa68 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 15 Dec 2006 21:27:26 +0000 Subject: [PATCH] * Handle weird cases when the server redirects us while setting a cookie. --- scripts/nix-prefetch-url.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index 0cf836599..c78ee184c 100644 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -48,7 +48,7 @@ if test -z "$finalPath"; then mkdir $tmpPath # 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. hash=$(@bindir@/nix-hash --type "$hashType" $hashFormat --flat $tmpFile)