changeset 40176:a4fe1df34f0f

8163149: Typo in java.net.http.AuthenticationFilter Reviewed-by: chegar, rriggs
author xiaofeya
date Fri, 05 Aug 2016 18:45:40 -0700
parents 8df87018d96a
children e2a7079bd50a
files jdk/src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
         });