Skip to content

Commit

Permalink
Accept halfway websocket requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwc0919 committed Sep 23, 2024
1 parent 1326205 commit 190adfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/HttpServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ void HttpServer::onRequests(
assert(!requests.empty());

// will only be checked for the first request
if (requestParser->firstReq() && requests.size() == 1 &&
isWebSocket(requests[0]))
if (requests.size() == 1 && isWebSocket(requests[0]))
{
auto &req = requests[0];
req->startProcessing();
Expand Down

0 comments on commit 190adfd

Please sign in to comment.