mirror of
https://github.com/curl/curl.git
synced 2026-05-14 11:46:22 +03:00
os400: Disable Alt-Svc by default since it's experimental
Follow-up to520f0b4which added Alt-Svc support and enabled it by default for OS400. Since the feature is experimental, it should be disabled by default. Ref:520f0b4 (commitcomment-32792332)Ref: https://curl.haxx.se/mail/lib-2019-02/0008.html Closes https://github.com/curl/curl/pull/3688
This commit is contained in:
parent
27fb521df5
commit
a375ab3be4
2 changed files with 8 additions and 3 deletions
|
|
@ -425,8 +425,8 @@
|
|||
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME
|
||||
|
||||
/* to enable alt-svc */
|
||||
#define USE_ALTSVC 1
|
||||
/* Define to enable alt-svc support (experimental) */
|
||||
#undef USE_ALTSVC
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,12 @@ curl_easy_setopt_ccsid(CURL * curl, CURLoption tag, ...)
|
|||
if(testwarn) {
|
||||
testwarn = 0;
|
||||
|
||||
if((int) STRING_LASTZEROTERMINATED != (int) STRING_ALTSVC + 1 ||
|
||||
if(
|
||||
#ifdef USE_ALTSVC
|
||||
(int) STRING_LASTZEROTERMINATED != (int) STRING_ALTSVC + 1 ||
|
||||
#else
|
||||
(int) STRING_LASTZEROTERMINATED != (int) STRING_DOH + 1 ||
|
||||
#endif
|
||||
(int) STRING_LAST != (int) STRING_COPYPOSTFIELDS + 1)
|
||||
curl_mfprintf(stderr,
|
||||
"*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue