From de0d5b7331e310c71a6cd9e4f000d67b28d0a969 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sun, 1 Mar 2020 09:58:20 +0100 Subject: [PATCH] Add debug output of html page size --- src/hasp_http.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hasp_http.cpp b/src/hasp_http.cpp index 5f6e03ec..cacec9e9 100644 --- a/src/hasp_http.cpp +++ b/src/hasp_http.cpp @@ -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()