J

for #384,refine code for empty body request.

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