--- a/test/jdk/java/net/httpclient/CookieHeaderTest.java Thu Mar 29 09:59:24 2018 +0100
+++ b/test/jdk/java/net/httpclient/CookieHeaderTest.java Thu Mar 29 15:32:18 2018 +0100
@@ -174,9 +174,12 @@
cookies.stream()
.filter(s -> !s.startsWith("LOC"))
.collect(Collectors.toList()));
- request = HttpRequest.newBuilder(uri)
- .header("X-uuid", "uuid-" + requestCounter.incrementAndGet())
- .build();
+ requestBuilder = HttpRequest.newBuilder(uri)
+ .header("X-uuid", "uuid-" + requestCounter.incrementAndGet());
+ if (version != null) {
+ requestBuilder.version(version);
+ }
+ request = requestBuilder.build();
}
}