Use correct variable type when getting HTTP response code from cURL

This commit is contained in:
Daniel Schulte 2021-04-06 16:42:35 +02:00
parent c611b70567
commit 97f252ce28
1 changed files with 1 additions and 1 deletions

2
yt.cpp
View File

@ -52,7 +52,7 @@ static json api_request(const std::string &url, std::map<std::string, std::strin
data.push_back(0); data.push_back(0);
int http_response = 0; long http_response = 0;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_response); curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_response);
curl_url_cleanup(u); curl_url_cleanup(u);