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

[http_request] get_response_headers not const

This commit is contained in:
Craig Andrews 2025-02-21 17:59:09 -05:00
parent 6ccfda7aba
commit 30626adc5b
No known key found for this signature in database
GPG Key ID: 581BAFE062A38CB6

View File

@ -101,7 +101,7 @@ class HttpContainer : public Parented<HttpRequestComponent> {
*
* @return The key is the lower case response header name, the value is the header value.
*/
const std::map<std::string, std::list<std::string>> &get_response_headers() const { return this->response_headers_; }
std::map<std::string, std::list<std::string>> get_response_headers() { return this->response_headers_; }
std::string get_response_header(const std::string &header_name);