Skip to content

Commit

Permalink
HTTP/2: simplified producing of the Last-Modified header.
Browse files Browse the repository at this point in the history
  • Loading branch information
VBart committed Oct 26, 2015
1 parent 70c29f0 commit 69e7885
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/http/v2/ngx_http_v2_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,8 @@ ngx_http_v2_header_filter(ngx_http_request_t *r)
{
*b->last++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_LAST_MODIFIED_INDEX);

p = b->last;
b->last = ngx_http_time(b->last + 1, r->headers_out.last_modified_time);
*p = (u_char) (b->last - p - 1);
*b->last++ = sizeof("Wed, 31 Dec 1986 18:00:00 GMT") - 1;
b->last = ngx_http_time(b->last, r->headers_out.last_modified_time);
}

if (r->headers_out.location && r->headers_out.location->value.len) {
Expand Down

0 comments on commit 69e7885

Please sign in to comment.