1
0
mirror of synced 2025-12-18 16:34:09 +03:00

Update httplib.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
yhirose
2025-12-05 12:34:49 -05:00
committed by GitHub
parent 82e892db2d
commit 7856cc2520

View File

@@ -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<time_t>(stat.mtime());
auto mtime = stat.mtime();
auto last_modified = detail::file_mtime_to_http_date(mtime);
if (!etag.empty()) { res.set_header("ETag", etag); }