Ensure curl follows redirects for downloads

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Nick White 2013-03-30 10:32:45 +00:00 committed by Christoph Lohmann
parent e0e4a844f7
commit a383964c95

View file

@ -32,7 +32,7 @@ static Bool hidebackground = FALSE;
/* DOWNLOAD(URI, referer) */ /* DOWNLOAD(URI, referer) */
#define DOWNLOAD(d, r) { \ #define DOWNLOAD(d, r) { \
.v = (char *[]){ "/bin/sh", "-c", \ .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';" \ " --referer '$2' -b $3 -c $3 '$0';" \
" sleep 5;\"", \ " sleep 5;\"", \
d, useragent, r, cookiefile, NULL \ d, useragent, r, cookiefile, NULL \