Skip to content

Commit 0354ffc

Browse files
committed
remove unnecessary code
1 parent b1cbadc commit 0354ffc

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncProtocolExec.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ public void execute(
159159
// that of the previous authentication exchange.
160160
targetAuthExchange.reset();
161161
}
162-
if (targetAuthExchange.getPathPrefix() == null) {
163-
targetAuthExchange.setPathPrefix(pathPrefix);
164-
}
165162

166163
if (authCacheKeeper != null) {
167164
authCacheKeeper.loadPreemptively(target, pathPrefix, targetAuthExchange, clientContext);

httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProtocolExec.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ public ClassicHttpResponse execute(
163163
// that of the previous authentication exchange.
164164
targetAuthExchange.reset();
165165
}
166-
if (targetAuthExchange.getPathPrefix() == null) {
167-
targetAuthExchange.setPathPrefix(pathPrefix);
168-
}
169166

170167
if (authCacheKeeper != null) {
171168
authCacheKeeper.loadPreemptively(target, pathPrefix, targetAuthExchange, context);

0 commit comments

Comments
 (0)