From 4ca3f5a4a21149825b1d92817d1d94ae0e00ee9a Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Thu, 11 Apr 2024 18:42:12 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20HTTP=20Parser=E4=B8=ADlog=20error?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=95=88=E7=9A=84stream=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http/src/http_half.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp index c58c83e..e364856 100644 --- a/plugin/protocol/http/src/http_half.cpp +++ b/plugin/protocol/http/src/http_half.cpp @@ -318,8 +318,8 @@ static int __parser_callback_on_headers_complete(http_parser * parser) char *__str_transfer_encoding = (char *)tfe_http_field_read(hf_public, &__transfer_encoding_field_name); if (!(__str_transfer_encoding && strncasecmp(__str_transfer_encoding, "chunked", strlen("chunked")) == 0)) { - const char * __str_stream = hf_private->session->hc_private->stream->str_stream_info; - TFE_LOG_ERROR(g_http_plugin->logger, "the content-length and transfer-encoding field not set, passthrough the whole tcp connection: %s. ", __str_stream); + //const char * __str_stream = hf_private->session->hc_private->stream->str_stream_info; + TFE_LOG_ERROR(g_http_plugin->logger, "the content-length and transfer-encoding field not set, passthrough the whole tcp connection."); hf_private->is_passthrough = true; return -1; }