diff --git a/libraries/WebServer/src/detail/RequestHandlersImpl.h b/libraries/WebServer/src/detail/RequestHandlersImpl.h index 153fbce6..27a2a8d3 100644 --- a/libraries/WebServer/src/detail/RequestHandlersImpl.h +++ b/libraries/WebServer/src/detail/RequestHandlersImpl.h @@ -113,7 +113,7 @@ public: } File f = _fs.open(path, "r"); - if (!f) + if (!f || !f.available()) return false; if (_cache_header.length() != 0)