mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
兼容http body超过声明大小的情况
This commit is contained in:
parent
5f936663b4
commit
fe37005526
@ -112,7 +112,7 @@ ssize_t HttpSession::onRecvHeader(const char *header, size_t len) {
|
||||
_on_recv_body = [this, parser, received, content_len](const char *data, size_t len) mutable {
|
||||
received += len;
|
||||
onRecvUnlimitedContent(parser, data, len, content_len, received);
|
||||
if (received != content_len) {
|
||||
if (received < content_len) {
|
||||
// 还没收满
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user