mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +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";
|
pcContentType = "text/plain";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(size && pcContentType){
|
if((size || no_content_length) && pcContentType){
|
||||||
//有body时,设置文件类型
|
//有body时,设置文件类型
|
||||||
string strContentType = pcContentType;
|
string strContentType = pcContentType;
|
||||||
strContentType += "; charset=";
|
strContentType += "; charset=";
|
||||||
|
Loading…
Reference in New Issue
Block a user