-
Notifications
You must be signed in to change notification settings - Fork 361
Fix IPRO and missing Content-Length headers in 32-bit builds. #1196
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -492,7 +492,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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we comment the hell out of this variable and its ancestors that it is totally bogus on 32-it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did check that we're not using it anywhere else. I don't think a comment would be much use, though something to actually hide/break the variable wouldn't be an awful idea. Not sure exactly how to go about that, though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Never mind; I see this is just a big fat global bomb supplied by nginx that we are using. |
||
headers->SetDate(timer.NowMs()); | ||
} | ||
|
||
// TODO(oschaaf): ComputeCaching should be called in setupforhtml()? | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice