mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
ws: return CURLE_NOT_BUILT_IN when websockets not built in
- Change curl_ws_recv & curl_ws_send to return CURLE_NOT_BUILT_IN when websockets support is not built in. Prior to this change they returned CURLE_OK. Closes #9851
This commit is contained in:
parent
b1953c1933
commit
3cbdf4a148
4
lib/ws.c
4
lib/ws.c
@ -732,7 +732,7 @@ CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
|
||||
(void)buflen;
|
||||
(void)nread;
|
||||
(void)metap;
|
||||
return CURLE_OK;
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
}
|
||||
|
||||
CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
|
||||
@ -746,7 +746,7 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
|
||||
(void)sent;
|
||||
(void)framesize;
|
||||
(void)sendflags;
|
||||
return CURLE_OK;
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
}
|
||||
|
||||
CURL_EXTERN struct curl_ws_frame *curl_ws_meta(struct Curl_easy *data)
|
||||
|
Loading…
Reference in New Issue
Block a user