From ffd2ca67341742c2a98bd53b8db7c05ca6f862a6 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Wed, 22 Sep 2021 15:25:05 +0800 Subject: [PATCH] =?UTF-8?q?TSG-7844=20=E6=94=AF=E6=8C=81=E5=88=86=E5=88=AB?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=AF=B7=E6=B1=82=E4=BE=A7=E5=92=8C=E5=BA=94?= =?UTF-8?q?=E7=AD=94=E4=BE=A7=E7=9A=84content=5Ftype=E5=92=8Clength?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/pangu-http/src/pangu_logger.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin/business/pangu-http/src/pangu_logger.cpp b/plugin/business/pangu-http/src/pangu_logger.cpp index 56d0b17..107a9cb 100644 --- a/plugin/business/pangu-http/src/pangu_logger.cpp +++ b/plugin/business/pangu-http/src/pangu_logger.cpp @@ -126,10 +126,12 @@ int pangu_send_log(struct pangu_logger* handle, const struct pangu_log* log_msg) struct json_spec req_fields[]={ {"http_cookie", TFE_HTTP_COOKIE}, {"http_referer", TFE_HTTP_REFERER}, - {"http_user_agent", TFE_HTTP_USER_AGENT} }; + {"http_user_agent", TFE_HTTP_USER_AGENT}, + {"http_request_content_type", TFE_HTTP_CONT_TYPE}, + {"http_request_content_length", TFE_HTTP_CONT_LENGTH}}; - struct json_spec resp_fields[]={ {"http_content_type", TFE_HTTP_CONT_TYPE}, - {"http_content_length", TFE_HTTP_CONT_LENGTH}, + struct json_spec resp_fields[]={ {"http_response_content_type", TFE_HTTP_CONT_TYPE}, + {"http_response_content_length", TFE_HTTP_CONT_LENGTH}, {"http_set_cookie", TFE_HTTP_SET_COOKIE}}; if (!handle->en_sendlog)