8163149: Typo in java.net.http.AuthenticationFilter

Reviewed-by: chegar, rriggs
This commit is contained in:
Felix Yang 2016-08-05 18:45:40 -07:00
parent 8cf37c5448
commit 9b7097c149

View File

@ -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");
});