diff options
| author | fengweihao <[email protected]> | 2019-12-05 19:04:04 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2019-12-05 19:04:04 +0800 |
| commit | 7476f84fa1e4b806d5b3be71ed88cf91f39eb0bc (patch) | |
| tree | 273e90c5a0f08fc61ce4c6985bc4e4b323317403 /plugin/protocol/http2/src/http2_common.cpp | |
| parent | 70da6223932d305a536f0405ca1a603535167128 (diff) | |
TSG-376 修复Proxy Event Logs中Request Line、Response Line显示为空,Stream Trace Id显示为0
1)修复重定向命中URL+请求头,域名输入错误页面本身重定向失败问题
Diffstat (limited to 'plugin/protocol/http2/src/http2_common.cpp')
| -rw-r--r-- | plugin/protocol/http2/src/http2_common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/protocol/http2/src/http2_common.cpp b/plugin/protocol/http2/src/http2_common.cpp index 0eb2521..8135c4c 100644 --- a/plugin/protocol/http2/src/http2_common.cpp +++ b/plugin/protocol/http2/src/http2_common.cpp @@ -224,8 +224,9 @@ static int inflate_gzip_read(struct z_stream_st **strm, char **dest, int *outlen (*strm)->zst.avail_out = CHUNK; (*strm)->zst.next_out = out; ret = inflate(&((*strm)->zst), Z_NO_FLUSH); - assert(ret != Z_STREAM_ERROR); /* state not clobbered */ switch (ret) { + case Z_STREAM_ERROR: + ret = Z_STREAM_ERROR; case Z_NEED_DICT: ret = Z_DATA_ERROR; /* and fall through */ case Z_DATA_ERROR: |
