diff --git a/src/httpserverrequest.cpp b/src/httpserverrequest.cpp index 013303d..9938d22 100644 --- a/src/httpserverrequest.cpp +++ b/src/httpserverrequest.cpp @@ -250,7 +250,6 @@ void HttpServerRequest::onReadyRead() priv->parser.next(); } - priv->parser.next(); priv->buffer.remove(0, priv->parser.parsed_count()); if (is_upgrade) { diff --git a/src/websocket.cpp b/src/websocket.cpp index ef3e947..b415829 100644 --- a/src/websocket.cpp +++ b/src/websocket.cpp @@ -965,7 +965,6 @@ inline bool WebSocketHttpClient::execute(QByteArray &chunk) parser.next(); } - parser.next(); chunk.remove(0, parser.parsed_count()); if (ready && headers.contains("Upgrade"))