diff --git a/lib/handshake.c b/lib/handshake.c index bf01f514..df898c64 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -199,10 +199,11 @@ read_ok: http_complete: lwsl_debug("libwebsocket_read: http_complete\n"); +#ifndef LWS_NO_SERVER /* Did the client want to keep the HTTP connection going? */ if (lws_http_transaction_completed(wsi)) goto bail; - +#endif /* If we have more data, loop back around: */ if (len) goto http_new;