mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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