lib: disable websockets early if no http

To prevent inconsistent `CURL_DISABLE_WEBSOCKETS` states between source
files.

Follow-up to 8edc0338f3 #20351

Closes #20526
This commit is contained in:
Viktor Szakats 2026-02-05 12:42:59 +01:00
parent f659b82c2a
commit 4b3af7fb67
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -289,6 +289,9 @@
# define CURL_DISABLE_HEADERS_API 1
# define CURL_DISABLE_HSTS 1
# define CURL_DISABLE_HTTP_AUTH 1
# ifndef CURL_DISABLE_WEBSOCKETS
# define CURL_DISABLE_WEBSOCKETS /* no WebSockets without HTTP present */
# endif
#endif
/* ================================================================ */