Skip to content

Commit

Permalink
Fetch uri information correctly when httphost argument is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunprasad Bagavatssing authored and abagavat committed Jul 3, 2024
1 parent 1496a6c commit b600453
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package datadog.trace.instrumentation.apachehttpclient5;

import java.net.URI;
import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.http.HttpRequest;
Expand All @@ -15,6 +16,11 @@ public HostAndRequestAsHttpUriRequest(final HttpHost httpHost, final HttpRequest
actualRequest = httpRequest;
}

@Override
public URI getUri() {
actualRequest.getUri();
}

@Override
public void setHeader(String name, Object value) {
actualRequest.setHeader(name, value);
Expand Down

0 comments on commit b600453

Please sign in to comment.