mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix compiler error
This commit is contained in:
parent
00a43953d2
commit
b3427eff6f
@ -925,13 +925,12 @@ int handleFileRead(String path)
|
||||
if(!error) {
|
||||
// LOG_TRACE(TAG_CONF, F(D_FILE_LOADING), configFile.c_str());
|
||||
configMaskPasswords(settings); // Output settings in log with masked passwords
|
||||
char buffer[800];
|
||||
char buffer[1024];
|
||||
size_t len = serializeJson(settings, buffer, sizeof(buffer));
|
||||
// LOG_VERBOSE(TAG_CONF, buffer);
|
||||
|
||||
webServer.setContentLength(len);
|
||||
webServer.send(200, contentType, "");
|
||||
webServer.sendContent((const char*)buffer, len);
|
||||
webServer.send(200, contentType, buffer);
|
||||
} else {
|
||||
return 500; // Internal Server error
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user