mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 01:44:20 -07:00
[http_request] Add comment explaining why start() calls perform() directly
The no-collect-headers start() overload calls perform() directly instead of the vector start() overload to avoid ambiguity with the deprecated std::set overload.
This commit is contained in:
@@ -353,6 +353,7 @@ class HttpRequestComponent : public Component {
|
||||
|
||||
std::shared_ptr<HttpContainer> start(const std::string &url, const std::string &method, const std::string &body,
|
||||
const std::list<Header> &request_headers) {
|
||||
// Call perform() directly to avoid ambiguity with the std::set overload
|
||||
return this->perform(url, method, body, request_headers, {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user