diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-09 17:04:37 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-09 17:04:37 +0000 |
| commit | e3acbc6bbbd69cb38de2b19847db6025fbdc2e1d (patch) | |
| tree | e7dbb84bc3b3541ccfe07be20f16d15a7a8c146b /src | |
| parent | 1b77858ac56ed4c304d7265f0691772f30e8dccb (diff) | |
| download | nginx-e3acbc6bbbd69cb38de2b19847db6025fbdc2e1d.tar.gz nginx-e3acbc6bbbd69cb38de2b19847db6025fbdc2e1d.tar.bz2 | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_range_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
