HttClientTest cleanup
This commit is contained in:
Greg Wilkins 2016-03-17 09:58:29 +11:00
parent 966cc2dcba
commit c1b03c6d8c
1 changed files with 7 additions and 2 deletions

View File

@ -256,10 +256,15 @@ public class HttpClientTest extends AbstractTest
{ {
@Override @Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
try
{ {
baseRequest.setHandled(true); baseRequest.setHandled(true);
response.getOutputStream().write(new byte[length]); response.getOutputStream().write(new byte[length]);
} }
catch(IOException e)
{}
}
}); });
// Make a request with a large enough response buffer. // Make a request with a large enough response buffer.