changeset 17343:e6670114b9f8

8163149: Typo in java.net.http.AuthenticationFilter Reviewed-by: chegar, rriggs
author xiaofeya
date Fri, 05 Aug 2016 18:45:40 -0700
parents 0060376192f1
children 888f66a02c9a
files src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.httpclient/share/classes/java/net/http/AuthenticationFilter.java	Sat Aug 06 00:34:50 2016 +0200
+++ b/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");
         });