nginx/src
Maxim Dounin 774f179a9b Range filter: allowed ranges on empty files (ticket #1031).
As per RFC 2616 / RFC 7233, any range request to an empty file
is expected to result in 416 Range Not Satisfiable response, as
there cannot be a "byte-range-spec whose first-byte-pos is less
than the current length of the entity-body".  On the other hand,
this makes use of byte-range requests inconvenient in some cases,
as reported for the slice module here:

http://mailman.nginx.org/pipermail/nginx-devel/2017-June/010177.html

This commit changes range filter to instead return 200 if the file
is empty and the range requested starts at 0.
2017-06-27 00:53:46 +03:00
..
core Resolver: fixed allocation error handling while resolving SRV. 2017-06-19 14:25:42 +03:00
event Fixed deferred accept with EPOLLRDHUP enabled (ticket #1278). 2017-05-24 13:17:08 +03:00
http Range filter: allowed ranges on empty files (ticket #1031). 2017-06-27 00:53:46 +03:00
mail Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00
misc Style: fix typo. 2014-07-08 03:03:14 -07:00
os Style. 2017-06-01 16:49:14 +03:00
stream Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00