Avoid one layer of HttpHeaders wrapping

See gh-24680
This commit is contained in:
Rossen Stoyanchev
2020-05-08 10:34:26 +01:00
parent a64e7091e0
commit 3276f81851
8 changed files with 34 additions and 43 deletions

View File

@@ -32,7 +32,7 @@ import org.springframework.ui.Model;
*/
class DefaultRendering implements Rendering {
private static final HttpHeaders EMPTY_HEADERS = HttpHeaders.readOnlyHttpHeaders(new HttpHeaders());
private static final HttpHeaders EMPTY_HEADERS = HttpHeaders.EMPTY;
private final Object view;