mirror of
https://github.com/esphome/esphome.git
synced 2026-03-02 18:58:20 -07:00
[http_request]Use std::string for headers (#8225)
This commit is contained in:
@@ -84,7 +84,7 @@ std::shared_ptr<HttpContainer> HttpRequestIDF::start(std::string url, std::strin
|
||||
container->set_secure(secure);
|
||||
|
||||
for (const auto &header : headers) {
|
||||
esp_http_client_set_header(client, header.name, header.value);
|
||||
esp_http_client_set_header(client, header.name.c_str(), header.value.c_str());
|
||||
}
|
||||
|
||||
const int body_len = body.length();
|
||||
|
||||
Reference in New Issue
Block a user