mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 18:48:44 +05:00
fix: http code for StaticPage fixed
This commit is contained in:
1 parent
2adbda6832
commit
2a67716f65
1 file changed
+3
-1
@@ -78,9 +78,11 @@ public:
|
||||
if (server._eTagEnabled && this->eTag.length() > 0) {
|
||||
server.sendHeader("ETag", this->eTag);
|
||||
}
|
||||
#endif
|
||||
|
||||
server.streamFile(file, F("text/html"), method);
|
||||
#else
|
||||
server.streamFile(file, F("text/html"), 200);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user