mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 19:48:39 +00:00
[http_request] Remove redundant lowercasing from add_collect_header
start() already lowercases all collect_headers via lowercase_headers(), so pre-lowercasing at insertion time was redundant double work on every request.
This commit is contained in:
@@ -409,7 +409,7 @@ template<typename... Ts> class HttpRequestSendAction : public Action<Ts...> {
|
||||
this->request_headers_.insert({key, value});
|
||||
}
|
||||
|
||||
void add_collect_header(const char *value) { this->collect_headers_.push_back(str_lower_case(value)); }
|
||||
void add_collect_header(const char *value) { this->collect_headers_.push_back(value); }
|
||||
|
||||
void add_json(const char *key, TemplatableValue<std::string, Ts...> value) { this->json_.insert({key, value}); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user