# HG changeset patch # User Valentin Bartenev # Date 1445870588 -10800 # Node ID 39fa0b7e3a67d103267f8345c0e31d2e2cd5302d # Parent b2de4a56b86076dbc8aa01236f38c7fa51f26bde HTTP/2: simplified producing of the Last-Modified header. diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c --- a/src/http/v2/ngx_http_v2_filter_module.c +++ b/src/http/v2/ngx_http_v2_filter_module.c @@ -484,9 +484,8 @@ ngx_http_v2_header_filter(ngx_http_reque { *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) {