Skip to content

Commit

Permalink
set CURLOPT_HTTPHEADER to include User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt authored and marcomagdy committed Dec 5, 2019
1 parent 1d1373d commit 6679a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ runtime::next_outcome runtime::get_next()

curl_slist* headers = nullptr;
headers = curl_slist_append(headers, get_user_agent_header().c_str());
curl_easy_setopt(m_curl_handle, CURLOPT_HTTPHEADER, headers);

logging::log_debug(LOG_TAG, "Making request to %s", m_endpoints[Endpoints::NEXT].c_str());
CURLcode curl_code = curl_easy_perform(m_curl_handle);
Expand Down

0 comments on commit 6679a71

Please sign in to comment.