mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17:59 +03:00
add: limit from body size
This commit is contained in:
@@ -196,7 +196,8 @@ void Request::splitData(std::string &data)
|
||||
_head_ok = true;
|
||||
|
||||
parseHeader();
|
||||
if (_contentLength == 0 && !_chunked)
|
||||
if ((_contentLength == 0 && !_chunked) || (_method == "GET"
|
||||
|| _method == "DELETE" || _method == "HEAD"))
|
||||
_body_ok = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user