mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 19:07:49 +08:00
修复http直播不发送content-type的问题
This commit is contained in:
parent
bad9553ec4
commit
0f39565f67
@ -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=";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user