Skip to content
Snippets Groups Projects
Commit a77a8e7e authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

comment (http response)

parent 84ae0569
No related branches found
No related tags found
1 merge request!306HTTP Basic Auth for websocket
Pipeline #26969 passed
......@@ -210,6 +210,8 @@ bool ftl::net::ws_connect(SOCKET sockfd, const URI &uri, const ws_options &optio
http += "Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==\r\n";
http += "Sec-WebSocket-Version: 13\r\n";
http += "\r\n";
// TODO: Check/process HTTP response code
int rc = ::send(sockfd, http.c_str(), (int)http.length(), 0);
if (rc != (int)http.length()) {
LOG(ERROR) << "Could not send Websocket http request... (" << rc << ", " << errno << ")";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment