mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-27 19:33:39 +00:00
8163149: Typo in java.net.http.AuthenticationFilter
Reviewed-by: chegar, rriggs
This commit is contained in:
parent
8cf37c5448
commit
9b7097c149
@ -189,7 +189,7 @@ class AuthenticationFilter implements HeaderFilter {
|
||||
}
|
||||
|
||||
boolean proxy = status == PROXY_UNAUTHORIZED;
|
||||
String authname = proxy ? "Proxy-Authentication" : "WWW-Authenticate";
|
||||
String authname = proxy ? "Proxy-Authenticate" : "WWW-Authenticate";
|
||||
String authval = hdrs.firstValue(authname).orElseThrow(() -> {
|
||||
return new IOException("Invalid auth header");
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user