From cb6c52229862ff8aa60d5ca10e9d13fcb0efde24 Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Thu, 18 Oct 2018 13:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3HTTP=E6=B5=81=E5=BC=8F?= =?UTF-8?q?=E5=8F=91=E9=80=81=E5=BA=94=E7=AD=94=E6=97=B6=EF=BC=8CContent-L?= =?UTF-8?q?ength=E5=A1=AB=E5=86=99=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http/src/http_half.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp index b5696ab..a3f0c75 100644 --- a/plugin/protocol/http/src/http_half.cpp +++ b/plugin/protocol/http/src/http_half.cpp @@ -971,7 +971,7 @@ void hf_private_construct(struct http_half_private * hf_private) } /* have body, write content-length and content-type */ - if (hf_private->evbuf_body) + if (hf_private->evbuf_body && !hf_private->is_setup_by_stream) { /* To string */ char str_sz_evbuf_body[TFE_STRING_MAX];