Skip to content

Commit

Permalink
Merge pull request #5965 from n-stein/fix(#5894)
Browse files Browse the repository at this point in the history
fix linux build
  • Loading branch information
vomikan committed Jun 2, 2023
2 parents 048cda2 + 41ca42e commit 230b58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ CURLcode getYahooFinanceQuotes(const wxString& URL, wxString& output) {

struct curl_slist* headers = nullptr;
headers = curl_slist_append(headers, "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8");
if (!savedCookie.IsEmpty()) headers = curl_slist_append(headers, static_cast<const char*>(wxString("Cookie: " + savedCookie).mb_str()));
if (!savedCookie.IsEmpty()) headers = curl_slist_append(headers, static_cast<const char*>(("Cookie: " + savedCookie).mb_str()));
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

CURLcode res = CURLE_OK;
Expand Down

0 comments on commit 230b58e

Please sign in to comment.