1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

[http_request] return a new string

This commit is contained in:
Craig Andrews 2025-02-21 16:15:05 -05:00
parent 3f7e4ddfa5
commit 713944a075
No known key found for this signature in database
GPG Key ID: 581BAFE062A38CB6

View File

@ -36,7 +36,7 @@ std::string HttpContainer::get_response_header(const std::string &header_name) {
} else {
ESP_LOGD(TAG, "Header with name %s found", header_name_lower_case.c_str());
ESP_LOGD(TAG, "Header with name %s found with value %s", header_name_lower_case.c_str(), values.front().c_str());
return values.front();
return values.front() + "";
}
}
}