1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 17:22:20 +01:00

[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

@@ -124,7 +124,7 @@ void OnlineImage::update() {
default:
accept_mime_type = "image/*";
}
accept_header.value = (accept_mime_type + ",*/*;q=0.8").c_str();
accept_header.value = accept_mime_type + ",*/*;q=0.8";
headers.push_back(accept_header);