Permalink
Browse files

date-header: fix 32 bits issue

Should fix #913
  • Loading branch information...
oschaaf committed Feb 16, 2015
1 parent 9da85bb commit 7355f2e2079aa04546e74aa78c9c6faa20c72c92
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ngx_pagespeed.cc
@@ -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()?

0 comments on commit 7355f2e

Please sign in to comment.