8172253: SetIfModifiedSince.java test fails with http return code 404
authormichaelm
Fri, 13 Jan 2017 17:45:32 +0000
changeset 43101 00bb279169a5
parent 43100 a7e3457672c7
child 43102 02f12903b22c
8172253: SetIfModifiedSince.java test fails with http return code 404 Reviewed-by: chegar, dfuchs
jdk/test/sun/net/www/protocol/http/SetIfModifiedSince.java
--- a/jdk/test/sun/net/www/protocol/http/SetIfModifiedSince.java	Fri Jan 13 13:12:21 2017 +0100
+++ b/jdk/test/sun/net/www/protocol/http/SetIfModifiedSince.java	Fri Jan 13 17:45:32 2017 +0000
@@ -22,7 +22,7 @@
  */
 
 /* @test
-   @bug 4213164
+   @bug 4213164 8172253
    @summary setIfModifiedSince mehtod in HttpURLConnection sometimes fails
    */
 import java.util.*;
@@ -88,7 +88,7 @@
      //url = new URL(args[0]);
      url = new URL("http://localhost:" + String.valueOf(port) +
                    "/anything");
-     con = (HttpURLConnection)url.openConnection();
+     con = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
 
      con.setIfModifiedSince(date.getTime());
      con.connect();