Skip to content

Commit 8621376

Browse files
fix: add follow location option for get request (#2131)
Co-authored-by: sangjanai <[email protected]>
1 parent 90c622a commit 8621376

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/utils/curl_utils.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ cpp::result<std::string, std::string> SimpleGet(const std::string& url,
147147
std::default_delete<CurlResponse>());
148148

149149
SetUpProxy(curl, url);
150+
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
150151
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
151152
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlResponse::WriteCallback);
152153
curl_easy_setopt(curl, CURLOPT_WRITEDATA, response);

0 commit comments

Comments
 (0)