diff --git a/java/src/org/openqa/selenium/grid/web/RoutableHttpClientFactory.java b/java/src/org/openqa/selenium/grid/web/RoutableHttpClientFactory.java index 44a21c5c5fef6..d3576bd9f922e 100644 --- a/java/src/org/openqa/selenium/grid/web/RoutableHttpClientFactory.java +++ b/java/src/org/openqa/selenium/grid/web/RoutableHttpClientFactory.java @@ -56,9 +56,8 @@ public HttpClient createClient(ClientConfig config) { return new HttpClient() { @Override public HttpResponse execute(HttpRequest request) throws UncheckedIOException { - HttpResponse response = new HttpResponse(); - if (!handler.test(request)) { + HttpResponse response = new HttpResponse(); response.setStatus(404); response.setContent( asJson(