mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +03:00
parent
dffd996e3b
commit
a86fcb284f
5 changed files with 15 additions and 15 deletions
|
|
@ -52,7 +52,7 @@ static CURLcode ping(CURL *curl, const char *send_payload)
|
|||
return result;
|
||||
}
|
||||
|
||||
static CURLcode recv_pong(CURL *curl, const char *exected_payload)
|
||||
static CURLcode recv_pong(CURL *curl, const char *expected_payload)
|
||||
{
|
||||
size_t rlen;
|
||||
const struct curl_ws_frame *meta;
|
||||
|
|
@ -71,8 +71,8 @@ static CURLcode recv_pong(CURL *curl, const char *exected_payload)
|
|||
}
|
||||
|
||||
fprintf(stderr, "ws: got PONG back\n");
|
||||
if(rlen == strlen(exected_payload) &&
|
||||
!memcmp(exected_payload, buffer, rlen)) {
|
||||
if(rlen == strlen(expected_payload) &&
|
||||
!memcmp(expected_payload, buffer, rlen)) {
|
||||
fprintf(stderr, "ws: got the same payload back\n");
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue