aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2014-03-21 19:33:21 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2014-03-21 19:33:21 +0400
commiteffbf466aa44df725a9f68761b2793065bba6756 (patch)
tree8231bd358e880f9b927634dfdfdad6846e913734 /src/http/ngx_http_request.h
parentc6ca13592308badb125bdada372e33b4b24fd28c (diff)
downloadnginx-effbf466aa44df725a9f68761b2793065bba6756.tar.gz
nginx-effbf466aa44df725a9f68761b2793065bba6756.zip
Range filter: single_range flag in request.
If set, it means that response body is going to be in more than one buffer, hence only range requests with a single range should be honored. The flag is now used by mp4 and cacheable upstream responses, thus allowing range requests of mp4 files with start/end, as well as range processing on a first request to a not-yet-cached files with proxy_cache. Notably this makes it possible to play mp4 files (with proxy_cache, or with mp4 module) on iOS devices, as byte-range support is required by Apple.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index a1295e799..705c4e904 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -528,6 +528,7 @@ struct ngx_http_request_s {
unsigned filter_need_in_memory:1;
unsigned filter_need_temporary:1;
unsigned allow_ranges:1;
+ unsigned single_range:1;
#if (NGX_STAT_STUB)
unsigned stat_reading:1;