J

for #384,refine code for empty body request.

@@ -1441,9 +1441,8 @@ int SrsHttpParser::parse_message_imp(SrsStSocket* skt) @@ -1441,9 +1441,8 @@ 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) {
1445 buffer->read_slice(header_parsed); 1445 buffer->read_slice(header_parsed);
1446 - header_parsed = 0;  
1447 } 1446 }
1448 1447
1449 // ok atleast header completed, 1448 // ok atleast header completed,