Merge branch '6.2.x'

This commit is contained in:
rstoyanchev
2025-04-28 14:29:58 +01:00
2 changed files with 19 additions and 2 deletions

View File

@@ -59,9 +59,10 @@ import org.springframework.util.ObjectUtils;
public class HttpEntity<T> {
/**
* The empty {@code HttpEntity}, with no body or headers.
* An {@code HttpEntity} instance with a {@code null} body and
* {@link HttpHeaders#EMPTY empty headers}.
*/
public static final HttpEntity<?> EMPTY = new HttpEntity<>();
public static final HttpEntity<?> EMPTY = new HttpEntity<>(HttpHeaders.EMPTY);
private final HttpHeaders headers;