Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 7355f2e

Browse files
committed
date-header: fix 32 bits issue
Should fix #913
1 parent 9da85bb commit 7355f2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ngx_pagespeed.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ void copy_response_headers_from_ngx(const ngx_http_request_t* r,
295295

296296
// When we don't have a date header, set one with the current time.
297297
if (headers->Lookup1(HttpAttributes::kDate) == NULL) {
298-
headers->SetDate(ngx_current_msec);
298+
PosixTimer timer;
299+
headers->SetDate(timer.NowMs());
299300
}
300301

301302
// TODO(oschaaf): ComputeCaching should be called in setupforhtml()?

0 commit comments

Comments
 (0)