mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix TomcatHeadersAdapter.clear()
This commit fixes a regression introduced in TomcatHeadersAdapter in conjunction with gh-33916. Closes gh-34092
This commit is contained in:
+2
-2
@@ -163,8 +163,8 @@ class TomcatHeadersAdapter implements MultiValueMap<String, String> {
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
for (int i = 0 ; i < this.headers.size(); i++) {
|
||||
this.headers.removeHeader(i);
|
||||
while (this.headers.size() > 0) {
|
||||
this.headers.removeHeader(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user