mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:33:35 +03:00
parent
118f446ad5
commit
42843af0b8
7 changed files with 12 additions and 12 deletions
|
|
@ -3535,7 +3535,7 @@ static CURLcode http_on_response(struct Curl_easy *data,
|
|||
#endif
|
||||
|
||||
#ifdef USE_WEBSOCKETS
|
||||
/* All >=200 HTTP status codes are errors when wanting websockets */
|
||||
/* All >=200 HTTP status codes are errors when wanting WebSockets */
|
||||
if(data->req.upgr101 == UPGR101_WS) {
|
||||
failf(data, "Refused WebSockets upgrade: %d", k->httpcode);
|
||||
result = CURLE_HTTP_RETURNED_ERROR;
|
||||
|
|
|
|||
2
lib/ws.c
2
lib/ws.c
|
|
@ -1276,7 +1276,7 @@ static void ws_free(struct connectdata *conn)
|
|||
static CURLcode ws_setup_conn(struct Curl_easy *data,
|
||||
struct connectdata *conn)
|
||||
{
|
||||
/* websockets is 1.1 only (for now) */
|
||||
/* WebSockets is 1.1 only (for now) */
|
||||
data->state.httpwant = CURL_HTTP_VERSION_1_1;
|
||||
return Curl_http_setup_conn(data, conn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue