mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
修复Http POST Content为空不响应的bug
This commit is contained in:
parent
3210419ffa
commit
9c8f604868
@ -376,9 +376,9 @@ inline HttpSession::KeyValue HttpSession::makeHttpHeader(bool bClose, int64_t iC
|
|||||||
}
|
}
|
||||||
inline HttpSession::HttpCode HttpSession::Handle_Req_POST() {
|
inline HttpSession::HttpCode HttpSession::Handle_Req_POST() {
|
||||||
int iContentLen = atoi(m_parser["Content-Length"].data());
|
int iContentLen = atoi(m_parser["Content-Length"].data());
|
||||||
if (!iContentLen) {
|
/*if (!iContentLen) {
|
||||||
return Http_failed;
|
return Http_failed;
|
||||||
}
|
}*/
|
||||||
if ((int) m_strRcvBuf.size() < iContentLen) {
|
if ((int) m_strRcvBuf.size() < iContentLen) {
|
||||||
return Http_moreData; //需要更多数据
|
return Http_moreData; //需要更多数据
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user