| 410 | } |
| 411 | |
| 412 | void CLiveSession::WriteFailResponse() { |
| 413 | stringstream ss; |
| 414 | ss << version << " 400 Bad request\r\n" |
| 415 | "Connection: " << Connection << "\r\n" |
| 416 | "Content-Length: 0\r\n" |
| 417 | "\r\n"; |
| 418 | |
| 419 | writeBuff.clear(); |
| 420 | writeBuff.append_string(ss.str().c_str()); |
| 421 | |
| 422 | writing = true; |
| 423 | uv_buf_t buff = uv_buf_init(writeBuff.get(), writeBuff.size()); |
| 424 | uv_write(&writeReq, (uv_stream_t*)&socket, &buff, 1, on_uv_write); |
| 425 | } |
| 426 | |
| 427 | ////////////////////////////////////////////////////////////////////////// |
| 428 |
nothing calls this directly
no test coverage detected