stillalex commented on code in PR #1921:
URL: https://github.com/apache/solr/pull/1921#discussion_r1326396396
##########
solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java:
##########
@@ -403,12 +405,12 @@ public void onBegin(Request request) {
final Optional<String> preFetchedUser =
getUserFromJettyRequest(request);
if ("v1".equals(System.getProperty(SEND_VERSION))) {
preFetchedUser
- .map(PKIAuthenticationPlugin.this::generateToken)
- .ifPresent(token -> request.header(HEADER, token));
+ .map(PKIAuthenticationPlugin.this::getToken)
+ .ifPresent(token -> request.headers(mutable ->
mutable.add(HEADER, token)));
Review Comment:
minor: maybe 'put' is a better method for this header
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]