Skip to content

Commit 8869c9a

Browse files
committed
1.6.0: use libcurl version macro that works on older platforms
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent c11da6c commit 8869c9a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
12/06/2023
22
- add support for the OAuth 2.0 Client Credentials grant type
3+
- use libcurl version macro that works on older platforms
34
- release 1.6.0
45

56
11/08/2023

src/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ bool oauth2_http_call(oauth2_log_t *log, const char *url, const char *data,
10071007
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&buf);
10081008

10091009
#ifndef LIBCURL_NO_CURLPROTO
1010-
#if CURL_AT_LEAST_VERSION(7, 85, 0)
1010+
#if LIBCURL_VERSION_NUM >= 0x075500
10111011
curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS_STR, "http,https");
10121012
curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "http,https");
10131013
#else

0 commit comments

Comments
 (0)