--- a/test/jdk/java/net/httpclient/http2/RedirectTest.java Wed Oct 23 15:48:11 2019 +0200
+++ b/test/jdk/java/net/httpclient/http2/RedirectTest.java Wed Oct 23 15:54:39 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -87,6 +87,11 @@
}
}
+ @Override
+ protected int redirectCode() {
+ return 308; // we need to use a code that preserves the body
+ }
+
public synchronized boolean error() {
return error;
}