mirror of
https://github.com/curl/curl.git
synced 2026-07-24 17:17:22 +03:00
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:
parent
f659b82c2a
commit
4b3af7fb67
2 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
/* ================================================================ */
|
||||
|
|
|
|||
6
lib/ws.c
6
lib/ws.c
|
|
@ -24,12 +24,6 @@
|
|||
#include "curl_setup.h"
|
||||
#include "urldata.h"
|
||||
|
||||
#ifdef CURL_DISABLE_HTTP
|
||||
/* no WebSockets without HTTP present */
|
||||
#undef CURL_DISABLE_WEBSOCKETS
|
||||
#define CURL_DISABLE_WEBSOCKETS 1
|
||||
#endif
|
||||
|
||||
#ifndef CURL_DISABLE_WEBSOCKETS
|
||||
|
||||
#include "url.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue