Mercurial > hg > nginx
comparison src/http/modules/ngx_http_range_filter_module.c @ 4750:149634c98d67
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 09 Jul 2012 17:04:37 +0000 |
parents | 4752060ca462 |
children | a387ce36744a |
comparison
equal
deleted
inserted
replaced
4749:613750237b36 | 4750:149634c98d67 |
---|---|
177 | 177 |
178 if (r->headers_in.if_range) { | 178 if (r->headers_in.if_range) { |
179 | 179 |
180 if_range = &r->headers_in.if_range->value; | 180 if_range = &r->headers_in.if_range->value; |
181 | 181 |
182 if (if_range->len > 2 && if_range->data[if_range->len - 1] == '"') { | 182 if (if_range->len >= 2 && if_range->data[if_range->len - 1] == '"') { |
183 | 183 |
184 if (r->headers_out.etag == NULL) { | 184 if (r->headers_out.etag == NULL) { |
185 goto next_filter; | 185 goto next_filter; |
186 } | 186 } |
187 | 187 |