Skip to content

Commit 746b97b

Browse files
committedMar 12, 2017
Allow cURL to follow redirects.
1 parent 8c46fd9 commit 746b97b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/common/cURLManager.cxx

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ cURLManager::cURLManager()
7171
logDebugMessage(1,"CURLOPT_NOSIGNAL error %d : %s\n", result, errorBuffer);
7272
}
7373

74+
result = curl_easy_setopt(easyHandle, CURLOPT_FOLLOWLOCATION, true);
75+
if (result != CURLE_OK) {
76+
logDebugMessage(1, "CURLOPT_FOLLOWLOCATION error %d : %s\n", result, errorBuffer);
77+
}
78+
7479
result = curl_easy_setopt(easyHandle, CURLOPT_WRITEFUNCTION,
7580
cURLManager::writeFunction);
7681
if (result != CURLE_OK)

0 commit comments

Comments
 (0)
Please sign in to comment.