From: Maxim Dounin Date: Mon, 9 Jul 2012 17:04:37 +0000 (+0000) Subject: Entity tags: empty etags handling in If-Range. X-Git-Tag: release-1.3.3~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e3acbc6bbbd69cb38de2b19847db6025fbdc2e1d;p=nginx.git 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. --- diff --git a/src/http/modules/ngx_http_range_filter_module.c b/src/http/modules/ngx_http_range_filter_module.c index 7a7742105..82c202d33 100644 --- a/src/http/modules/ngx_http_range_filter_module.c +++ b/src/http/modules/ngx_http_range_filter_module.c @@ -179,7 +179,7 @@ ngx_http_range_header_filter(ngx_http_request_t *r) 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;