From eebdff23e7b40c25e6e461d273bba155d74f2a2d Mon Sep 17 00:00:00 2001 From: Olga MaciaszekSharma Date: Fri, 9 Feb 2024 15:00:35 +0100 Subject: [PATCH 1/2] Fix supportsRequestAttributes for RestClientAdapter Previously, RestClientAdapter claimed that it supports request attributes when, in fact, it does not. This commit updates the implementation accordingly. See gh-32232 --- .../springframework/web/client/support/RestClientAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java b/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java index 2aa65e9a3fc..4dc910a1c83 100644 --- a/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java +++ b/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java @@ -55,7 +55,7 @@ public final class RestClientAdapter implements HttpExchangeAdapter { @Override public boolean supportsRequestAttributes() { - return true; + return false; } @Override From ee801d1b28f623921aea3883634e8c9181c02af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 12 Feb 2024 10:29:16 +0100 Subject: [PATCH 2/2] Update copyright year of changed file See gh-32232 --- .../springframework/web/client/support/RestClientAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java b/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java index 4dc910a1c83..10eacbd0555 100644 --- a/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java +++ b/spring-web/src/main/java/org/springframework/web/client/support/RestClientAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.