Skip to content

Commit

Permalink
use actualrequest only when hostname's uri is null
Browse files Browse the repository at this point in the history
  • Loading branch information
amarziali committed Jul 5, 2024
1 parent 3695e2b commit c03ddc6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public HostAndRequestAsHttpUriRequest(final HttpHost httpHost, final HttpRequest

@Override
public URI getUri() throws URISyntaxException {
URI uri = super.getUri();
if (uri != null && uri.getHost() != null) {
return uri;
}
return actualRequest.getUri();
}

Expand Down

0 comments on commit c03ddc6

Please sign in to comment.