changeset 43101:00bb279169a5

8172253: SetIfModifiedSince.java test fails with http return code 404 Reviewed-by: chegar, dfuchs
author michaelm
date Fri, 13 Jan 2017 17:45:32 +0000
parents a7e3457672c7
children 02f12903b22c
files jdk/test/sun/net/www/protocol/http/SetIfModifiedSince.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();