OpenJDK / aarch32-port / jdk9u / jdk
changeset 16467:3b4c9ed404f0
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 | f3115622562a |
children | 0e0e0fbc5bf3 |
files | test/sun/net/www/protocol/http/SetIfModifiedSince.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/sun/net/www/protocol/http/SetIfModifiedSince.java Fri Jan 13 13:12:21 2017 +0100 +++ b/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();