Skip to content

Commit d944a98

Browse files
committed
nit updates
1 parent b60ea41 commit d944a98

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,17 @@ private HttpExecuteResponse execute(HttpUriRequestBase apacheRequest, MetricColl
286286
}
287287
}
288288

289-
private static HttpHost determineTarget(final ClassicHttpRequest request) throws IOException {
289+
/**
290+
* Determines the target host from the request using Apache HttpClient's official routing support utility.
291+
*/
292+
private static HttpHost determineTarget(ClassicHttpRequest request) throws IOException {
290293
try {
291294
return RoutingSupport.determineHost(request);
292-
} catch (final HttpException ex) {
295+
} catch (HttpException ex) {
293296
throw new ClientProtocolException(ex);
294297
}
295298
}
296299

297-
298300
private HttpUriRequestBase toApacheRequest(HttpExecuteRequest request) {
299301
return apacheHttpRequestFactory.create(request, requestConfig);
300302
}

0 commit comments

Comments
 (0)