修正HTTP流式发送应答时,Content-Length填写错误的问题。

This commit is contained in:
Lu Qiuwen
2018-10-18 13:42:43 +08:00
parent af9b36eecb
commit cb6c522298

View File

@@ -971,7 +971,7 @@ void hf_private_construct(struct http_half_private * hf_private)
} }
/* have body, write content-length and content-type */ /* 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 */ /* To string */
char str_sz_evbuf_body[TFE_STRING_MAX]; char str_sz_evbuf_body[TFE_STRING_MAX];