Skip to content

Commit f907cd5

Browse files
committed
Update call sites to httpclient.execute
1 parent fe1307e commit f907cd5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

java/client/src/org/openqa/selenium/remote/HttpCommandExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public Response execute(Command command) throws IOException {
161161
HttpRequest httpRequest = commandCodec.encode(command);
162162
try {
163163
log(LogType.PROFILER, new HttpProfilerLogEntry(command.getName(), true));
164-
HttpResponse httpResponse = client.execute(httpRequest, true);
164+
HttpResponse httpResponse = client.execute(httpRequest);
165165
log(LogType.PROFILER, new HttpProfilerLogEntry(command.getName(), false));
166166

167167
Response response = responseCodec.decode(httpResponse);

java/client/src/org/openqa/selenium/remote/ProtocolHandshake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private Optional<Result> createSession(HttpClient client, InputStream newSession
9898
request.setHeader(CONTENT_TYPE, JSON_UTF_8.toString());
9999
request.setContent(newSessionBlob);
100100
long start = System.currentTimeMillis();
101-
HttpResponse response = client.execute(request, true);
101+
HttpResponse response = client.execute(request);
102102
long time = System.currentTimeMillis() - start;
103103

104104
// Ignore the content type. It may not have been set. Strictly speaking we're not following the

java/client/test/org/openqa/selenium/environment/webserver/JettyAppServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public String create(Page page) {
210210
HttpRequest request = new HttpRequest(HttpMethod.POST, "/common/createPage");
211211
request.setHeader(CONTENT_TYPE, JSON_UTF_8.toString());
212212
request.setContent(data);
213-
HttpResponse response = client.execute(request, true);
213+
HttpResponse response = client.execute(request);
214214
return response.getContentString();
215215
} catch (IOException ex) {
216216
throw new RuntimeException(ex);

java/client/test/org/openqa/selenium/remote/internal/HttpClientTestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
9999
try {
100100
HttpClient client = createFactory().createClient(server.getURI().toURL());
101101
HttpRequest request = new HttpRequest(HttpMethod.GET, "/foo");
102-
return client.execute(request, true);
102+
return client.execute(request);
103103
} finally {
104104
server.stop();
105105
}

java/client/test/org/openqa/selenium/testing/drivers/GridSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private synchronized void startServers() {
9191
HttpRequest req = new HttpRequest(HttpMethod.GET, "/status");
9292
HttpResponse response = null;
9393
try {
94-
response = c.execute(req, true);
94+
response = c.execute(req);
9595
} catch (IOException e) {
9696
throw new RuntimeException(e);
9797
}

java/server/src/org/openqa/selenium/remote/server/ProtocolConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void handle(HttpRequest req, HttpResponse resp) throws IOException {
9393

9494
@VisibleForTesting
9595
HttpResponse makeRequest(HttpRequest request) throws IOException {
96-
return client.execute(request, true);
96+
return client.execute(request);
9797
}
9898

9999
private void copyToServletResponse(HttpResponse response, HttpResponse resp)

0 commit comments

Comments
 (0)