Closed
Description
Although, as per RFC 2616, All the HTTP/1.1 headers should be case-insensitive. However, as a general practice, most of the major web servers have their headers capitalized. Also, some broken HTTP/1.1 implementations do not recognize some specific headers(e.g.: Server header for Apache Benchmark) if they are not properly capitalized. It would be better if the header can be capitalized.
Performance Concerns: Compared to str.lower()
, str.title() is slower. However, this can be migrated by adding an LRU Cache into the header capitalization process to solve the problem.
Metadata
Metadata
Assignees
Labels
No labels