File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-webmvc/src/main/java/org/springframework/web/servlet/function Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -508,14 +508,14 @@ public NoContentLengthResponseWrapper(HttpServletResponse response) {
508
508
509
509
@ Override
510
510
public void addIntHeader (String name , int value ) {
511
- if (name != null && !HttpHeaders .CONTENT_LENGTH .equals (name )) {
511
+ if (!HttpHeaders .CONTENT_LENGTH .equals (name )) {
512
512
super .addIntHeader (name , value );
513
513
}
514
514
}
515
515
516
516
@ Override
517
517
public void addHeader (String name , String value ) {
518
- if (name != null && !HttpHeaders .CONTENT_LENGTH .equals (name )) {
518
+ if (!HttpHeaders .CONTENT_LENGTH .equals (name )) {
519
519
super .addHeader (name , value );
520
520
}
521
521
}
You can’t perform that action at this time.
0 commit comments