Skip to content

Commit

Permalink
comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Jan 21, 2025
1 parent fc76402 commit 0520adb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public Map<String, AuthChallenge> extractChallengeMap(final ChallengeType challe
* @param authStrategy the authentication strategy.
* @param authExchange the current authentication exchange state.
* @param context the current execution context.
* @return {@code true} if the request needs-to be re-sent ,
* @return {@code true} if the request needs-to be re-sent,
* {@code false} if the authentication is complete (successful or not).
*
* @throws AuthenticationException if the AuthScheme throws one. In most cases this indicates a
Expand Down Expand Up @@ -428,7 +428,7 @@ public void addAuthResponse(
request.addHeader(header);
}
break;
} catch (final AuthenticationException ex ) {
} catch (final AuthenticationException ex) {
if (LOG.isWarnEnabled()) {
LOG.warn("{} {} authentication error: {}", exchangeId, authScheme, ex.getMessage());
}
Expand All @@ -440,8 +440,8 @@ public void addAuthResponse(
default:
}
// This is the SUCCESS and HANDSHAKE states, same as the initial response.
// This only happens if the NEGOTIATE handshake requires multiple requests, which is
// defined in the RFC, but unlikely in practice.
// This only happens if the handshake requires multiple requests, which is
// unlikely in practice.
if (authScheme != null) {
try {
final String authResponse = authScheme.generateAuthResponse(host, request, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public ClassicHttpResponse execute(
authenticator.addAuthResponse(proxy, ChallengeType.PROXY, request, proxyAuthExchange, context);
}

//The is where the actual network communications happens (eventually)
// This is where the actual network communication happens (eventually)
final ClassicHttpResponse response = chain.proceed(request, scope);

if (Method.TRACE.isSame(request.getMethod())) {
Expand Down

0 comments on commit 0520adb

Please sign in to comment.