Skip to content

Commit

Permalink
gnss_info: Fixed bug in download.
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Nov 13, 2023
1 parent f7caab7 commit 187f5d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnss_info/src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ cras::expected<std::stringstream, std::string> download(const std::string& url,
std::stringstream readBuffer;
const auto curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1u);
curlOptions(curl); // Set extra config options.
if (curlOptions)
curlOptions(curl); // Set extra config options.
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curlCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
Expand Down

0 comments on commit 187f5d0

Please sign in to comment.