mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Set UTF-8 encoding and version for prometheus /metrics (#2993)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace esphome {
|
||||
namespace prometheus {
|
||||
|
||||
void PrometheusHandler::handleRequest(AsyncWebServerRequest *req) {
|
||||
AsyncResponseStream *stream = req->beginResponseStream("text/plain");
|
||||
AsyncResponseStream *stream = req->beginResponseStream("text/plain; version=0.0.4; charset=utf-8");
|
||||
|
||||
#ifdef USE_SENSOR
|
||||
this->sensor_type_(stream);
|
||||
|
Reference in New Issue
Block a user