mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
use application/json as mime type instead of text/json
This commit is contained in:
parent
6e5ecf72ac
commit
f81aad1197
1 changed files with 1 additions and 1 deletions
|
@ -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<std::string> s;
|
||||
|
|
Loading…
Reference in a new issue