Skip to content

Commit 7856cc2

Browse files
yhiroseCopilot
andauthored
Update httplib.h
Co-authored-by: Copilot <[email protected]>
1 parent 82e892d commit 7856cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8359,7 +8359,7 @@ inline bool Server::handle_file_request(Request &req, Response &res) {
83598359

83608360
// Compute and set weak ETag based on mtime+size.
83618361
auto etag = detail::compute_etag(stat);
8362-
auto mtime = static_cast<time_t>(stat.mtime());
8362+
auto mtime = stat.mtime();
83638363
auto last_modified = detail::file_mtime_to_http_date(mtime);
83648364

83658365
if (!etag.empty()) { res.set_header("ETag", etag); }

0 commit comments

Comments
 (0)