From cc42e3284089fb9a985b312b3fc9dffeac226ccd Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 17:33:38 +0200 Subject: [PATCH] CURLOPT_WS_OPTIONS.md add history, drop cast --- docs/libcurl/opts/CURLOPT_WS_OPTIONS.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_WS_OPTIONS.md b/docs/libcurl/opts/CURLOPT_WS_OPTIONS.md index 35ae17cf47..95d56b0c4a 100644 --- a/docs/libcurl/opts/CURLOPT_WS_OPTIONS.md +++ b/docs/libcurl/opts/CURLOPT_WS_OPTIONS.md @@ -66,13 +66,19 @@ int main(void) CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "ws://example.com/"); /* tell curl we deal with all the WebSocket magic ourselves */ - curl_easy_setopt(curl, CURLOPT_WS_OPTIONS, (long)CURLWS_RAW_MODE); + curl_easy_setopt(curl, CURLOPT_WS_OPTIONS, CURLWS_RAW_MODE); res = curl_easy_perform(curl); curl_easy_cleanup(curl); } } ~~~ +# HISTORY + +**CURLWS_RAW_MODE** and **CURLWS_NOAUTOPONG** macros became `long` types +in 8.16.0, prior to this version a `long` cast was necessary when passed +to curl_easy_setopt(3). + # %AVAILABILITY% # RETURN VALUE