aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-10-26 17:43:08 +0300
committerValentin Bartenev <vbart@nginx.com>2015-10-26 17:43:08 +0300
commit69e78850fe75b994fe209df41633fe0484779433 (patch)
tree714fd2b6d2bea4d914f37e9d13980744c0a529f5 /src
parent70c29f05f02136452b0639ac4786fd01437ff5e1 (diff)
downloadnginx-69e78850fe75b994fe209df41633fe0484779433.tar.gz
nginx-69e78850fe75b994fe209df41633fe0484779433.zip
HTTP/2: simplified producing of the Last-Modified header.
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2_filter_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c
index bcffd851c..461a4d18e 100644
--- 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_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) {