diff --git a/lib/http2.c b/lib/http2.c index c4affe43366b9be72198e24544fcf29fc97b6294..b54df25e377e8ff6689852aa1fcad30f3b9b56ff 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -145,7 +145,7 @@ static int on_data_chunk_recv(nghttp2_session *session, uint8_t flags, c->bodystarted = TRUE; } - if(len < c->len) { + if(len <= c->len) { memcpy(c->mem, data, len); c->mem += len; c->len -= len;