mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 19:28:44 +05:00
fix: http code for StaticPage fixed
This commit is contained in:
1 parent
2adbda6832
commit
2a67716f65
1 file changed
+4
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user