--- a/jdk/src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java Sat Aug 06 00:34:50 2016 +0200
+++ b/jdk/src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java Fri Aug 05 18:45:40 2016 -0700
@@ -189,7 +189,7 @@
}
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");
});