[http_request]Use std::string for headers (#8225)

This commit is contained in:
guillempages
2025-02-11 01:39:03 +01:00
committed by GitHub
parent b667ceaced
commit 8b7aa4c110
4 changed files with 5 additions and 5 deletions

View File

@@ -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();