mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48: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
|
#endif
|
||||||
|
|
||||||
void WebServer::handle_states_request(AsyncWebServerRequest *request) {
|
void WebServer::handle_states_request(AsyncWebServerRequest *request) {
|
||||||
AsyncResponseStream *stream = request->beginResponseStream("text/json");
|
AsyncResponseStream *stream = request->beginResponseStream("application/json");
|
||||||
StatesIterator states_it = StatesIterator(this);
|
StatesIterator states_it = StatesIterator(this);
|
||||||
states_it.begin();
|
states_it.begin();
|
||||||
optional<std::string> s;
|
optional<std::string> s;
|
||||||
|
|
Loading…
Reference in a new issue