Maxim Dounin
December 04, 2014 02:40PM
Hello!

On Tue, Nov 25, 2014 at 02:22:13PM +0000, Steven Hartland wrote:

> # HG changeset patch
> # User Steven Hartland <steven.hartland@multiplay.co.uk>
> # Date 1416925134 0
> # Tue Nov 25 14:18:54 2014 +0000
> # Node ID 0c3c06fabfc3b1c57710c0cced4837c10e3e9bbb
> # Parent 7d7eac6e31df1d962a644f8093c1fbb8f91620ce
> Allow Partial Content responses to satisfy Range requests.

[...]

> - if (ctx->ranges.nelts == 1) {
> - return ngx_http_range_singlepart_header(r, ctx);
> + return ngx_http_range_multipart_header(r, ctx);
> +
> + case NGX_HTTP_RANGE_NOT_SATISFIABLE:
> + return ngx_http_range_not_satisfiable(r);

[...]

> static ngx_int_t
> -ngx_http_range_not_satisfiable(ngx_http_request_t *r)
> +ngx_http_range_not_satisfiable(ngx_http_request_t *r,
> + ngx_http_range_filter_ctx_t *ctx)
> {

Expectedly fails to build here:

src/http/modules/ngx_http_range_filter_module.c: In function 'ngx_http_range_header_filter':
src/http/modules/ngx_http_range_filter_module.c:254: error: too few arguments to function 'ngx_http_range_not_satisfiable'
*** [objs/src/http/modules/ngx_http_range_filter_module.o] Error code 1

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Allow Partial Content responses to satisfy Range requests

steveh 899 November 25, 2014 09:24AM

Re: [PATCH] Allow Partial Content responses to satisfy Range requests

steveh 719 November 25, 2014 09:30AM

Re: [PATCH] Allow Partial Content responses to satisfy Range requests

Maxim Dounin 409 December 04, 2014 02:40PM

Re: [PATCH] Allow Partial Content responses to satisfy Range requests

steveh 535 December 04, 2014 03:34PM



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

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready