Fixed method parseResponse() that should never return null.

The response is "filled" by parser events even if at the end of
the parsing the parser returns false.
This commit is contained in:
Simone Bordet 2013-07-26 19:07:20 +02:00
parent 7a5401e506
commit 61ea4d6705
1 changed files with 3 additions and 5 deletions

View File

@ -67,10 +67,8 @@ public class HttpTester
{
Response r=new Response();
HttpParser parser =new HttpParser(r);
if (parser.parseNext(response))
return r;
else
return null;
parser.parseNext(response);
return r;
}
@ -93,7 +91,7 @@ public class HttpTester
{
_version=version;
}
public void setContent(byte[] bytes)
{
try