Skip to content

Commit

Permalink
Follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
osm committed Mar 1, 2024
1 parent 07d5888 commit 5c96dfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ void Cmd_Exec_f (void)
strlcpy(name, Cmd_Argv(1), sizeof(name));

curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
curl_easy_setopt(curl, CURLOPT_URL, name);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &f);
Expand Down

0 comments on commit 5c96dfe

Please sign in to comment.