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

This commit is contained in:
guillempages authored and GitHub committed 2025-02-11 11:39:03 +11:00
1 parent b667ceaced
commit 8b7aa4c110
4 files changed
+5 -5

No files matched your search

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