J

for #384,refine code for empty body request.

... ... @@ -1441,9 +1441,8 @@ int SrsHttpParser::parse_message_imp(SrsStSocket* skt)
}
// consume the parsed bytes.
if (nparsed && header_parsed && (nparsed - header_parsed >= 0)) {
if (nparsed && header_parsed) {
buffer->read_slice(header_parsed);
header_parsed = 0;
}
// ok atleast header completed,
... ...