tEnsure curl follows redirects for downloads - surf - customized build of surf,… | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a383964c9582614fd56a45113cfa3685e92700fa | |
parent e0e4a844f76311f4bfed542d34459dcfc68f9ddf | |
Author: Nick White <[email protected]> | |
Date: Sat, 30 Mar 2013 10:32:45 +0000 | |
Ensure curl follows redirects for downloads | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M config.def.h | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
t@@ -32,7 +32,7 @@ static Bool hidebackground = FALSE; | |
/* DOWNLOAD(URI, referer) */ | |
#define DOWNLOAD(d, r) { \ | |
.v = (char *[]){ "/bin/sh", "-c", \ | |
- "st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \ | |
+ "st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \ | |
" --referer '$2' -b $3 -c $3 '$0';" \ | |
" sleep 5;\"", \ | |
d, useragent, r, cookiefile, NULL \ |