Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
date-header: fix 32 bits issue
Browse files Browse the repository at this point in the history
Should fix #913
  • Loading branch information
oschaaf committed Feb 16, 2015
1 parent 9da85bb commit 7355f2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ngx_pagespeed.cc
Expand Up @@ -295,7 +295,8 @@ void copy_response_headers_from_ngx(const ngx_http_request_t* r,

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

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

0 comments on commit 7355f2e

Please sign in to comment.