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

@ -257,8 +257,13 @@ public class HttpClientTest extends AbstractTest
@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
baseRequest.setHandled(true);
response.getOutputStream().write(new byte[length]);
try
{
baseRequest.setHandled(true);
response.getOutputStream().write(new byte[length]);
}
catch(IOException e)
{}
}
});