Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: simplified producing of the Last-Modified header.

Valentin Bartenev
October 26, 2015 10:48AM
details: http://hg.nginx.org/nginx/rev/39fa0b7e3a67
branches:
changeset: 6275:39fa0b7e3a67
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Oct 26 17:43:08 2015 +0300
description:
HTTP/2: simplified producing of the Last-Modified header.

diffstat:

src/http/v2/ngx_http_v2_filter_module.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r b2de4a56b860 -r 39fa0b7e3a67 src/http/v2/ngx_http_v2_filter_module.c
--- a/src/http/v2/ngx_http_v2_filter_module.c Mon Oct 26 17:43:08 2015 +0300
+++ b/src/http/v2/ngx_http_v2_filter_module.c Mon Oct 26 17:43:08 2015 +0300
@@ -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) {

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: simplified producing of the Last-Modified header.

Valentin Bartenev 391 October 26, 2015 10:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready