diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 00:59:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 00:59:36 -0400 |
commit | fda687eaa8b33899648e97798a7fbcaa9edda12b (patch) | |
tree | f01cc9c39560e7796390877d58c0285aeb487162 /src | |
parent | 7b63bfea23edb66e97ec4b2c276c1dbdf15c3849 (diff) | |
download | abaddon-portaudio-fda687eaa8b33899648e97798a7fbcaa9edda12b.tar.gz abaddon-portaudio-fda687eaa8b33899648e97798a7fbcaa9edda12b.zip |
add temporary workaround for bug in libcurl
Diffstat (limited to 'src')
-rw-r--r-- | src/discord/httpclient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/discord/httpclient.cpp b/src/discord/httpclient.cpp index 37436ee..25839f8 100644 --- a/src/discord/httpclient.cpp +++ b/src/discord/httpclient.cpp @@ -143,7 +143,13 @@ void HTTPClient::AddHeaders(http::request &r) { r.set_header(name, val); } curl_easy_setopt(r.get_curl(), CURLOPT_COOKIE, m_cookie.c_str()); + // https://github.com/curl/curl/issues/13226 + // TODO remove when new release +#if defined(LIBCURL_VERSION_NUM) && (LIBCURL_VERSION_NUM == 0x080701 || LIBCURL_VERSION_NUM == 0x080700) + // +#else curl_easy_setopt(r.get_curl(), CURLOPT_ACCEPT_ENCODING, ""); +#endif } void HTTPClient::OnResponse(const http::response_type &r, const std::function<void(http::response_type r)> &cb) { |