J

for #384,refine code for empty body request.

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