diff options
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index c4affe433..b54df25e3 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; |