diff --git a/esphome/components/http_request/http_request.h b/esphome/components/http_request/http_request.h index 5462900910..2e8cfb1dc1 100644 --- a/esphome/components/http_request/http_request.h +++ b/esphome/components/http_request/http_request.h @@ -101,7 +101,7 @@ class HttpContainer : public Parented { * * @return The key is the lower case response header name, the value is the header value. */ - const std::map> &get_response_headers() const { return this->response_headers_; } + std::map> get_response_headers() { return this->response_headers_; } std::string get_response_header(const std::string &header_name);