mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
API output utf-8
This commit is contained in:
@@ -82,7 +82,7 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request) {
|
||||
doc.shrinkToFit();
|
||||
std::string buffer;
|
||||
serializeJsonPretty(doc, buffer);
|
||||
request->send(200, "text/plain", buffer.c_str());
|
||||
request->send(200, "text/plain;charset=utf-8", buffer.c_str());
|
||||
return;
|
||||
}
|
||||
request->send(200, "text/plain", ok ? F("OK") : F("Invalid"));
|
||||
|
||||
Reference in New Issue
Block a user