See gh-32197
@ -438,7 +438,8 @@ class DefaultServerRequest implements ServerRequest {
@Override
public void clear() {
this.servletRequest.getAttributeNames().asIterator().forEachRemaining(this.servletRequest::removeAttribute);
List<String> attributeNames = Collections.list(this.servletRequest.getAttributeNames());
attributeNames.forEach(this.servletRequest::removeAttribute);
}