Adjusted Huffman coding debug logging, missed in 7977:336084ff943b.

Spotted by XingY Wang.
This commit is contained in:
Sergey Kandaurov 2023-11-14 14:50:03 +04:00
parent a13ed7f5ed
commit 6a4eb51f5e

View File

@ -2657,7 +2657,7 @@ ngx_http_huff_decode(u_char *state, u_char *src, size_t len, u_char **dst,
!= NGX_OK) != NGX_OK)
{ {
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, log, 0, ngx_log_debug2(NGX_LOG_DEBUG_HTTP, log, 0,
"http2 huffman decoding error at state %d: " "http huffman decoding error at state %d: "
"bad code 0x%Xd", *state, ch >> 4); "bad code 0x%Xd", *state, ch >> 4);
return NGX_ERROR; return NGX_ERROR;
@ -2667,7 +2667,7 @@ ngx_http_huff_decode(u_char *state, u_char *src, size_t len, u_char **dst,
!= NGX_OK) != NGX_OK)
{ {
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, log, 0, ngx_log_debug2(NGX_LOG_DEBUG_HTTP, log, 0,
"http2 huffman decoding error at state %d: " "http huffman decoding error at state %d: "
"bad code 0x%Xd", *state, ch & 0xf); "bad code 0x%Xd", *state, ch & 0xf);
return NGX_ERROR; return NGX_ERROR;
@ -2677,7 +2677,7 @@ ngx_http_huff_decode(u_char *state, u_char *src, size_t len, u_char **dst,
if (last) { if (last) {
if (!ending) { if (!ending) {
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0,
"http2 huffman decoding error: " "http huffman decoding error: "
"incomplete code 0x%Xd", ch); "incomplete code 0x%Xd", ch);
return NGX_ERROR; return NGX_ERROR;