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:
parent
7a5401e506
commit
61ea4d6705
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue