[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:
J. Nick Koston
2026-02-16 18:34:41 -06:00
parent d2037aef8d
commit f43ef21c69
@@ -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}); }