From c3cc5f852712182f6e531952111c1d2ed4501e3c Mon Sep 17 00:00:00 2001 From: kaoru Date: Wed, 11 Sep 2024 15:05:47 +0800 Subject: [PATCH] fix[http2]: hpack resize on decoding --- sese | 2 +- src/HttpConnectionEx.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sese b/sese index 945ab0e..7fbfa89 160000 --- a/sese +++ b/sese @@ -1 +1 @@ -Subproject commit 945ab0e98871f1ffdea6f843a327aa64838926b5 +Subproject commit 7fbfa89405221aee93c6ded91d6fddbdc368ac0c diff --git a/src/HttpConnectionEx.cpp b/src/HttpConnectionEx.cpp index f5ae378..7471d95 100644 --- a/src/HttpConnectionEx.cpp +++ b/src/HttpConnectionEx.cpp @@ -344,10 +344,10 @@ void HttpConnectionEx::handleHeadersFrame() { if (stream->end_headers) { auto rt = HPackUtil::decode(&stream->temp_buffer, stream->temp_buffer.getReadableSize(), req_dynamic_table, - stream->request); + stream->request, false); stream->temp_buffer.freeCapacity(); - if (!rt) { - writeGoawayFrame(frame.ident, 0, GOAWAY_COMPRESSION_ERROR, ""); + if (rt) { + writeGoawayFrame(frame.ident, 0, rt, ""); return; }