8163149: Typo in java.net.http.AuthenticationFilter
authorxiaofeya
Fri, 05 Aug 2016 18:45:40 -0700
changeset 40176 a4fe1df34f0f
parent 40175 8df87018d96a
child 40177 e2a7079bd50a
8163149: Typo in java.net.http.AuthenticationFilter Reviewed-by: chegar, rriggs
jdk/src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java
--- 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");
         });