修复http直播不发送content-type的问题

This commit is contained in:
xiongziliang 2021-01-31 18:24:03 +08:00
parent bad9553ec4
commit 0f39565f67

View File

@ -547,7 +547,7 @@ void HttpSession::sendResponse(int code,
pcContentType = "text/plain";
}
if(size && pcContentType){
if((size || no_content_length) && pcContentType){
//有body时设置文件类型
string strContentType = pcContentType;
strContentType += "; charset=";