Welcome! Log In Create A New Profile

Advanced

Re: [patch] Slice filter: support for empty file.

胡聪 (hucc)
June 21, 2017 01:26PM
Hi,

On Tuesday, Jun 20, 2017 11:01 PM +0300, Maxim Dounin wrote:

>On Tue, Jun 20, 2017 at 10:39:44AM +0800, 胡聪 (hucc) wrote:
>
>> >416 will be returned when the request has no Range HEADER and the target file is
>> >empty. Apparently, it does not conform to the HTTP protocol. Empty file seems
>> >inevitable in the CDN service where Nginx is heavily used.
>
>Returning the 416 response with some headers deleted and status
>code changed to 200 doesn't look like a safe solution.
>
>On the other hand, changing nginx's range filter to allow range
>requests to 0-byte files should make this unneeded. I've reopened
>ticket #1031 which is about range requests to 0-byte files, see
>https://trac.nginx.org/nginx/ticket/1031.

Looking forward to this feature! I've tried to implement this feature, and it's
a bit hard for me now.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[patch] Slice filter: support for empty file.

胡聪 (hucc) 480 June 19, 2017 02:26PM

Re:[patch] Slice filter: support for empty file.

胡聪 (hucc) 213 June 19, 2017 10:42PM

Re: [patch] Slice filter: support for empty file.

Maxim Dounin 261 June 20, 2017 11:02AM

Re: [patch] Slice filter: support for empty file.

胡聪 (hucc) 234 June 21, 2017 01:26PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready