8172253: SetIfModifiedSince.java test fails with http return code 404
Reviewed-by: chegar, dfuchs
--- 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();