Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
fetch: Follow HTTP redirects due to recent NVD issue
Browse files Browse the repository at this point in the history
Now this is the last change on this branch.. Work will now be happening on
the `2` branch to clean everything up.

Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
Ikey Doherty committed Apr 18, 2016
1 parent 92dd72f commit c687f56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/library/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ FetchStatus fetch_uri(const char *uri, const char *target, bool verbose)
goto bail;
}

/* Handle future redirects from NVD */
res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
if (res != CURLE_OK) {
goto bail;
}
res = curl_easy_perform(curl);
if (res != CURLE_OK) {
goto bail;
Expand Down

0 comments on commit c687f56

Please sign in to comment.