mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 18:29:52 +03:00
latest updates
This commit is contained in:
@@ -1435,6 +1435,7 @@ void EMSESP::setupWeb() {
|
||||
// esp8266React services has 13
|
||||
// custom projects has around 23
|
||||
webServer.config.max_uri_handlers = 80;
|
||||
// webServer.config.uri_match_fn = NULL;
|
||||
|
||||
// TODO add support for https
|
||||
webServer.listen(80); // start the web server
|
||||
|
||||
@@ -151,7 +151,10 @@ esp_err_t WebAPIService::parse(PsychicRequest * request, JsonObject & input) {
|
||||
}
|
||||
|
||||
// normal return
|
||||
// as setContentType("application/json; charset=utf-8")
|
||||
// TODO check if needed to add utf-8 here
|
||||
response.setContentType("application/json; charset=utf-8"); // TODO doesn't seem to work
|
||||
// response.addHeader("Connection", "close");
|
||||
|
||||
return response.send();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user