Merge branch '7.0.x'

This commit is contained in:
Sam Brannen
2026-06-27 18:09:31 +02:00
30 changed files with 100 additions and 65 deletions
@@ -329,6 +329,7 @@ class HttpHeadersTests {
}
@Test
@SuppressWarnings("deprecation") // for Locale constructors on JDK 19
void dateOtherLocale() {
Locale defaultLocale = Locale.getDefault();
try {
@@ -73,7 +73,7 @@ class SimpleClientHttpRequestFactoryTests extends AbstractHttpRequestFactoryTest
@Test
void deleteWithoutBodyDoesNotRaiseException() throws Exception {
HttpURLConnection connection = new TestHttpURLConnection(new URL("https://example.com"));
HttpURLConnection connection = new TestHttpURLConnection(URI.create("https://example.com").toURL());
((SimpleClientHttpRequestFactory) this.factory).prepareConnection(connection, "DELETE");
SimpleClientHttpRequest request = new SimpleClientHttpRequest(connection, 4096);
request.execute();