Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UnsupportedOperationException when modifying request and response headers with Framework 6.0.9 and later #906

Closed
wilkinsona opened this issue Nov 14, 2023 · 0 comments
Labels
Milestone

Comments

@wilkinsona
Copy link
Member

The changes made for spring-projects/spring-framework#29972 mean that the list of values with a read-only HttpHeaders instance is now seen as an unmodifiable list when iterating using forEach. We can workaround this change by using addAll rather than putAll. addAll reuses the values from within the list whereas putAll reuses the list itself which is now unmodifiable.

@wilkinsona wilkinsona added the type: bug A bug label Nov 14, 2023
@wilkinsona wilkinsona added this to the 3.0.x milestone Nov 14, 2023
@wilkinsona wilkinsona modified the milestones: 3.0.x, 3.0.1 Nov 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant