diff --git a/src/http_loop/http_loop.c b/src/http_loop/http_loop.c index b89005b..1120e75 100644 --- a/src/http_loop/http_loop.c +++ b/src/http_loop/http_loop.c @@ -22,7 +22,7 @@ bool http_loop_handle_request(event_loop_conn *conn) { return false; } - conn->rbuf_read += res; + conn->rbuf_read += ctx->req.len; // It's fun to respond with extremely specific error messages // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501