Roxen.git / server / etc / test / tests / http / websocket.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/websocket.pike:49:       switch(broken) {    case REQUEST_OK:    http_status = Protocols.HTTP.HTTP_SWITCH_PROT;    break;    case REQUEST_BAD_PATH:    http_path = "/";    break;    case REQUEST_BAD_PATH_SUFFIX:    http_path += "invalid"; -  http_status = Protocols.HTTP.HTTP_NOT_FOUND; +     break;    case REQUEST_HTTP_1_0:    http_version = "1.0"; -  +  http_status = Protocols.HTTP.HTTP_NOT_FOUND;    break;    case REQUEST_NO_HDR_CONNECTION:    m_delete(headers, "Connection"); -  +  http_status = Protocols.HTTP.HTTP_NOT_FOUND;    break;    case REQUEST_BAD_HDR_CONNECTION:    headers["Connection"] = "close"; -  +  http_status = Protocols.HTTP.HTTP_NOT_FOUND;    break;    case REQUEST_NO_HDR_UPGRADE:    m_delete(headers, "Upgrade");    break;    case REQUEST_BAD_HDR_UPGRADE:    headers["Upgrade"] = "Invalid";    break;    case REQUEST_NO_HDR_VERSION:    m_delete(headers, "Sec-WebSocket-Version");    break;