... after "Improve Transfer-Encoding handling" commit
f6dd87e.
Folks are reporting Chunked Transfer-Encoding values in real
traffic. HTTP requires case-insensitve treatment of codings.
delById(Http::HdrType::CONTENT_LENGTH);
// and clen state becomes irrelevant
- if (rawTe == "chunked") {
+ if (rawTe.caseCmp("chunked") == 0) {
; // leave header present for chunked() method
- } else if (rawTe == "identity") { // deprecated. no coding
+ } else if (rawTe.caseCmp("identity") == 0) { // deprecated. no coding
delById(Http::HdrType::TRANSFER_ENCODING);
} else {
// This also rejects multiple encodings until we support them properly.