Add debug output of html page size

This commit is contained in:
fvanroie 2020-03-01 09:58:20 +01:00
parent 1d7cdccc5f
commit de0d5b7331

View File

@ -160,6 +160,10 @@ void webSendPage(String & nodename, uint32_t httpdatalength, bool gohome = false
webServer.sendContent_P(HASP_STYLE); // 145
if(gohome) webServer.sendContent_P(HTTP_META_GO_BACK); // 47
webServer.sendContent_P(HTTP_HEADER_END); // 80
snprintf_P(buffer, sizeof(buffer), PSTR("HTTP: Sent page with %u static and %u dynamic bytes"), contentLength,
httpdatalength);
debugPrintln(buffer);
}
void webHandleRoot()