diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 21:32:41 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-03-31 21:32:41 -0400 |
commit | b7906eb918d0df1fa1508a77732113ca94056e4e (patch) | |
tree | fa533b611822b25924d4e2947bcf90307c6e5cff /src/discord/httpclient.cpp | |
parent | 1367e162c0581bdea7ec1d2129b18e70d7d43d2b (diff) | |
parent | fda687eaa8b33899648e97798a7fbcaa9edda12b (diff) | |
download | abaddon-portaudio-b7906eb918d0df1fa1508a77732113ca94056e4e.tar.gz abaddon-portaudio-b7906eb918d0df1fa1508a77732113ca94056e4e.zip |
Merge branch 'master' into stages
Diffstat (limited to 'src/discord/httpclient.cpp')
-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) { |