mirror of
https://github.com/curl/curl.git
synced 2026-06-06 20:34:17 +03:00
curl.h: switch CURL_HTTP_VERSION* enums to long constants
It fixes tests 1539, and 2402, 2404 (for non-Secure Transport), on macOS with the gcc compiler. Also unignore these tests in GHA/macos for non-secure transport. Ref:c349bd668c#14097 (issue 15.) Ref:7b0240c077#16539 Ref:2ec00372a1#16482 Closes #16580
This commit is contained in:
parent
f9ec5d89cb
commit
fd54bed51a
3 changed files with 21 additions and 24 deletions
|
|
@ -70,7 +70,7 @@ CURLcode test(char *URL)
|
|||
easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||
easy_setopt(curl, CURLOPT_POST, 1L);
|
||||
easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||
easy_setopt(curl, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_1_1);
|
||||
easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
easy_setopt(curl, CURLOPT_URL, URL);
|
||||
easy_setopt(curl, CURLOPT_READDATA, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue