Skip to content

Commit

Permalink
lastfm: set CURLOPT_CAINFO correctly on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Aug 8, 2024
1 parent 5e51fd7 commit a50e3a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions plugins/lastfm/lastfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ curl_req_send (const char *req, const char *post) {
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl, CURLOPT_PROGRESSFUNCTION, lfm_curl_control);
#ifdef __MINGW32__
curl_easy_setopt (curl, CURLOPT_CAINFO, getenv ("CURL_CA_BUNDLE"));
#endif
char ua[100];
deadbeef->conf_get_str ("network.http_user_agent", "deadbeef", ua, sizeof (ua));
curl_easy_setopt (curl, CURLOPT_USERAGENT, ua);
Expand Down
1 change: 0 additions & 1 deletion plugins/vfs_curl/vfs_curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,6 @@ http_thread_func (void *ctx) {
curl_easy_setopt (curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt (curl, CURLOPT_HTTP200ALIASES, ok_aliases);
#ifdef __MINGW32__
trace("CURL_CA_BUNDLE: %s\n", getenv ("CURL_CA_BUNDLE"));
curl_easy_setopt (curl, CURLOPT_CAINFO, getenv ("CURL_CA_BUNDLE"));
#endif
if (fp->pos > 0 && fp->length >= 0) {
Expand Down

0 comments on commit a50e3a5

Please sign in to comment.