From f81aad119764ccb1f552d900350017ddfcd927f0 Mon Sep 17 00:00:00 2001 From: Alexander 'Leo' Bergolth Date: Tue, 2 Jul 2024 09:47:48 +0200 Subject: [PATCH] use application/json as mime type instead of text/json --- esphome/components/web_server/web_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/web_server/web_server.cpp b/esphome/components/web_server/web_server.cpp index f8c6841c34..e5b8b36aa7 100644 --- a/esphome/components/web_server/web_server.cpp +++ b/esphome/components/web_server/web_server.cpp @@ -200,7 +200,7 @@ void WebServer::handle_js_request(AsyncWebServerRequest *request) { #endif void WebServer::handle_states_request(AsyncWebServerRequest *request) { - AsyncResponseStream *stream = request->beginResponseStream("text/json"); + AsyncResponseStream *stream = request->beginResponseStream("application/json"); StatesIterator states_it = StatesIterator(this); states_it.begin(); optional s;