diff options
Diffstat (limited to 'tests/wss.c')
| -rw-r--r-- | tests/wss.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/wss.c b/tests/wss.c index 4fef74e0..8b028fbe 100644 --- a/tests/wss.c +++ b/tests/wss.c @@ -132,7 +132,6 @@ check_props(nng_msg *msg) nng_pipe p; nng_sockaddr la; nng_sockaddr ra; - char *buf; p = nng_msg_get_pipe(msg); So(nng_pipe_id(p) > 0); @@ -143,18 +142,6 @@ check_props(nng_msg *msg) So(nng_pipe_get_addr(p, NNG_OPT_REMADDR, &ra) == 0); So(validloopback(&ra)); - // Request header - buf = NULL; - So(nng_pipe_get_string(p, NNG_OPT_WS_REQUEST_HEADERS, &buf) == 0); - So(strstr(buf, "Sec-WebSocket-Key") != NULL); - nng_strfree(buf); - - // Response header - buf = NULL; - So(nng_pipe_get_string(p, NNG_OPT_WS_RESPONSE_HEADERS, &buf) == 0); - So(strstr(buf, "Sec-WebSocket-Accept") != NULL); - nng_strfree(buf); - return (0); } |
