-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
Milestone
Description
Feature and motivation
I would suggest to convert all header names to lowercase in the HttpMessage.
It might be helpful in the future to have only lower case header names.
The header names should be in general treated case-insensitive, but there might be code somewhere not aware of this, so i would see this in Selenium 5.
Usage example
There is currently a hidden issue due to the case-sensitive map used in the HttpMessage.
The order of headers set depends currently on the map implementation and not on the order of adding them, this can be observed here:
| message.addHeader("Content-Length", "1024"); | |
| message.addHeader("Content-length", "2048"); | |
| message.addHeader("content-length", "4096"); | |
| assertThat(message.getHeader("Content-Length")).isEqualTo("4096"); |
message.getHeader("Content-Length") should actually return "1024"pujagani and VAIBHAVPANT07iampopovich