use application/json as mime type instead of text/json

This commit is contained in:
Alexander 'Leo' Bergolth 2024-07-02 09:47:48 +02:00
parent 6e5ecf72ac
commit f81aad1197

View file

@ -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;