mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
setopt: make protocols2num() work with websockets
So that CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR can specify those as well. Reported-by: Patrick Monnerat Bug: https://curl.se/mail/lib-2022-09/0016.html Closes #9467
This commit is contained in:
parent
70c8ce5ad0
commit
ce753e3c31
@ -185,6 +185,10 @@ static CURLcode protocol2num(char *str, curl_off_t *val)
|
||||
{ "smtps", CURLPROTO_SMTPS },
|
||||
{ "telnet", CURLPROTO_TELNET },
|
||||
{ "tftp", CURLPROTO_TFTP },
|
||||
#ifdef USE_WEBSOCKETS
|
||||
{ "ws", CURLPROTO_WS },
|
||||
{ "wss", CURLPROTO_WSS },
|
||||
#endif
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user