fix: http code for StaticPage fixed

This commit is contained in:
Yurii
2024-01-19 03:19:17 +03:00
parent 2adbda6832
commit 2a67716f65

View File

@@ -78,9 +78,11 @@ public:
if (server._eTagEnabled && this->eTag.length() > 0) { if (server._eTagEnabled && this->eTag.length() > 0) {
server.sendHeader("ETag", this->eTag); server.sendHeader("ETag", this->eTag);
} }
#endif
server.streamFile(file, F("text/html"), method); server.streamFile(file, F("text/html"), method);
#else
server.streamFile(file, F("text/html"), 200);
#endif
return true; return true;
} }