Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4751 - trunk/src/http/modules

Anonymous User
July 09, 2012 01:06PM
Author: mdounin
Date: 2012-07-09 17:04:37 +0000 (Mon, 09 Jul 2012)
New Revision: 4751
URL: http://trac.nginx.org/nginx/changeset/4751/nginx

Log:
Entity tags: empty etags handling in If-Range.

Entity tag may be of length 2 as per RFC 2616, i.e. double quotes only.
Pointed out by Ruslan Ermilov.


Modified:
trunk/src/http/modules/ngx_http_range_filter_module.c

Modified: trunk/src/http/modules/ngx_http_range_filter_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_range_filter_module.c 2012-07-09 14:53:42 UTC (rev 4750)
+++ trunk/src/http/modules/ngx_http_range_filter_module.c 2012-07-09 17:04:37 UTC (rev 4751)
@@ -179,7 +179,7 @@

if_range = &r->headers_in.if_range->value;

- if (if_range->len > 2 && if_range->data[if_range->len - 1] == '"') {
+ if (if_range->len >= 2 && if_range->data[if_range->len - 1] == '"') {

if (r->headers_out.etag == NULL) {
goto next_filter;

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

[nginx] svn commit: r4751 - trunk/src/http/modules

Anonymous User 1028 July 09, 2012 01:06PM



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

Online Users

Guests: 221
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