jdk/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java
changeset 3952 dc329398de30
parent 3859 8b82336dedb3
child 4150 74dfe4a968c6
child 4157 558590fb3b49
--- a/jdk/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java	Thu Oct 01 11:25:22 2009 +0100
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/DigestAuthentication.java	Fri Oct 02 13:57:41 2009 +0100
@@ -291,7 +291,7 @@
             uri = HttpURLConnection.connectRequestURI(conn.getURL());
             method = HTTP_CONNECT;
         } else {
-            uri = conn.getURL().getFile();
+            uri = conn.getRequestURI();
             method = conn.getMethod();
         }
 
@@ -385,7 +385,11 @@
 
     public void checkResponse (String header, String method, URL url)
                                                         throws IOException {
-        String uri = url.getFile();
+        checkResponse (header, method, url.getFile());
+    }
+
+    public void checkResponse (String header, String method, String uri)
+                                                        throws IOException {
         char[] passwd = pw.getPassword();
         String username = pw.getUserName();
         boolean qop = params.authQop();