mirror of
https://github.com/curl/curl.git
synced 2025-09-17 09:32:48 +03:00
parent
6de7322c03
commit
a46e412464
2
lib/ws.c
2
lib/ws.c
|
@ -145,7 +145,7 @@ CURLcode Curl_ws_accept(struct Curl_easy *data)
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
infof(data, "Recevied 101, switch to WebSockets; mask %02x%02x%02x%02x",
|
infof(data, "Received 101, switch to WebSockets; mask %02x%02x%02x%02x",
|
||||||
ws->ws.mask[0], ws->ws.mask[1], ws->ws.mask[2], ws->ws.mask[3]);
|
ws->ws.mask[0], ws->ws.mask[1], ws->ws.mask[2], ws->ws.mask[3]);
|
||||||
k->upgr101 = UPGR101_RECEIVED;
|
k->upgr101 = UPGR101_RECEIVED;
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ const char *protocol2scheme(proto_t proto)
|
||||||
return proto < proto_last? built_in_protos[proto]: NULL;
|
return proto < proto_last? built_in_protos[proto]: NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enter a protoype in the built-in prototype table. */
|
/* Enter a prototype in the built-in prototype table. */
|
||||||
static CURLcode enter_proto(const char *proto)
|
static CURLcode enter_proto(const char *proto)
|
||||||
{
|
{
|
||||||
if(scheme2protocol(proto) == PROTO_NONE) {
|
if(scheme2protocol(proto) == PROTO_NONE) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user