From f71ee388198c75bbe182d04efb126e97ea4a2d3b Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 27 Dec 2019 12:31:53 +0100 Subject: [PATCH] [HTTPCLIENT-2041] AuthenticationStrategy#select() assumes challanges key to be lowercase Properly document that lowercase keys are required. --- .../java/org/apache/hc/client5/http/AuthenticationStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/AuthenticationStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/AuthenticationStrategy.java index 1e534a5f2..2dfb16f67 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/AuthenticationStrategy.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/AuthenticationStrategy.java @@ -54,7 +54,7 @@ public interface AuthenticationStrategy { * in their order of preference. * * @param challengeType challenge type. - * @param challenges collection of challenges. + * @param challenges map of challenges keyed by lowercase auth scheme names. * @param context HTTP context. * @return authentication auth schemes that can be used for authentication. Can be empty. *