@@ -85,6 +87,7 @@ describe "Subscriber WebSocket" do
headers,body=read_response_on_socket(socket)
body.shouldeql("")
headers.shouldmatch_the_pattern(/Don't have at least one of the mandatory headers: Connection, Upgrade, Sec-WebSocket-Key and Sec-WebSocket-Version/)
socket.close
request<<"Upgrade: websocket\r\n"
...
...
@@ -93,6 +96,7 @@ describe "Subscriber WebSocket" do
headers,body=read_response_on_socket(socket)
body.shouldeql("")
headers.shouldmatch_the_pattern(/Don't have at least one of the mandatory headers: Connection, Upgrade, Sec-WebSocket-Key and Sec-WebSocket-Version/)
socket.close
request<<"Sec-WebSocket-Version: 8\r\n"
...
...
@@ -102,6 +106,7 @@ describe "Subscriber WebSocket" do
body.shouldeql("")
headers.should_notmatch_the_pattern(/Don't have at least one of the mandatory headers: Connection, Upgrade, Sec-WebSocket-Key and Sec-WebSocket-Version/)