Skip to content

Commit

Permalink
Add -L flag to curl to follow redirects in pdb downloader (#10208)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil authored and XVilka committed May 28, 2018
1 parent aeef9d7 commit 21fc443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/bin/pdb/pdb_downloader.c
Expand Up @@ -76,7 +76,7 @@ static int download(struct SPDBDownloader *pd) {
guid, R_SYS_DIR,
archive_name_escaped);

curl_cmd = r_str_newf ("curl -sfA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\"",
curl_cmd = r_str_newf ("curl -sfLA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\"",
user_agent,
symbol_server,
dbg_file,
Expand Down Expand Up @@ -131,7 +131,7 @@ static int download(struct SPDBDownloader *pd) {
guid, R_SYS_DIR,
archive_name_escaped);

curl_cmd = r_str_newf ("curl -sfA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\"",
curl_cmd = r_str_newf ("curl -sfLA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\"",
opt->user_agent,
opt->symbol_server,
opt->dbg_file,
Expand Down

0 comments on commit 21fc443

Please sign in to comment.