diff --git a/httplib.h b/httplib.h index d11c002..731a971 100644 --- a/httplib.h +++ b/httplib.h @@ -8359,7 +8359,7 @@ inline bool Server::handle_file_request(Request &req, Response &res) { // Compute and set weak ETag based on mtime+size. auto etag = detail::compute_etag(stat); - auto mtime = static_cast(stat.mtime()); + auto mtime = stat.mtime(); auto last_modified = detail::file_mtime_to_http_date(mtime); if (!etag.empty()) { res.set_header("ETag", etag); }