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

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Jul 9 17:04:37 UTC 2012


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;



More information about the nginx-devel mailing list