Skip to content

HttpHeaders.keySet() is no longer case-insensitive [SPR-15087] #19653

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-15087 and commented

This is a regression due to #19593. Consider the following:

HttpHeaders headers = new HttpHeaders();
headers.add("X-Foo", "bar");
System.out.println(headers.keySet().contains("x-foo"));

With M3 it outputs true. With M4 it outputs false.


Affects: 5.0 M4

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions