Fix header handling versus internal handling of content-type and content-length (Fix #86)

This commit is contained in:
Mathieu Carbou
2024-09-02 22:39:49 +02:00
parent 4f25782aa3
commit f9cfba3351
6 changed files with 75 additions and 38 deletions

View File

@@ -624,7 +624,6 @@ bool AsyncWebServerRequest::hasHeader(const __FlashStringHelper* data) const {
const AsyncWebHeader* AsyncWebServerRequest::getHeader(const char* name) const {
auto iter = std::find_if(std::begin(_headers), std::end(_headers), [&name](const AsyncWebHeader& header) { return header.name().equalsIgnoreCase(name); });
return (iter == std::end(_headers)) ? nullptr : &(*iter);
}