equal
deleted
inserted
replaced
74 HttpClient client = HttpClient.newBuilder() |
74 HttpClient client = HttpClient.newBuilder() |
75 .proxy(ps) |
75 .proxy(ps) |
76 .authenticator(auth) |
76 .authenticator(auth) |
77 .build(); |
77 .build(); |
78 HttpRequest req = HttpRequest.newBuilder(uri).GET().build(); |
78 HttpRequest req = HttpRequest.newBuilder(uri).GET().build(); |
79 HttpResponse<?> resp = client.sendAsync(req, discard(null)).get(); |
79 HttpResponse<?> resp = client.sendAsync(req, discard()).get(); |
80 if (resp.statusCode() != 404) { |
80 if (resp.statusCode() != 404) { |
81 throw new RuntimeException("Unexpected status code: " + resp.statusCode()); |
81 throw new RuntimeException("Unexpected status code: " + resp.statusCode()); |
82 } |
82 } |
83 |
83 |
84 if (auth.isCalled) { |
84 if (auth.isCalled) { |