Welcome! Log In Create A New Profile

Advanced

Re: dav and dav_ext, mp4 module, PROPFIND not working for files

July 01, 2014 01:35AM
Roman Arutyunyan Wrote:
-------------------------------------------------------
>
> Currently nginx does not seem to be able to do what you want. If
> you’re ready to patch
> the source here’s the patch fixing the issue.
>
> diff -r 0dd77ef9f114 src/http/modules/ngx_http_mp4_module.c
> --- a/src/http/modules/ngx_http_mp4_module.c Fri Jun 27 13:06:09
> 2014 +0400
> +++ b/src/http/modules/ngx_http_mp4_module.c Mon Jun 30 19:10:59
> 2014 +0400
> @@ -431,7 +431,7 @@ ngx_http_mp4_handler(ngx_http_request_t
> ngx_http_core_loc_conf_t *clcf;
>
> if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
> - return NGX_HTTP_NOT_ALLOWED;
> + return NGX_DECLINED;
> }
>
> if (r->uri.data[r->uri.len - 1] == '/') {


Thanks. This works well.

< HTTP/1.1 207 Multi-Status
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/video/avgn/t_screwattack_avgn_bugsbcc_901_gt.mp4</D:href>
<D:propstat>
<D:prop>
...

Is there any change this will make it into upstream so I don't have to keep on patching?

Not that I mind that much because with Gentoo and user patches it is extremely easy but I guess I would of course be concerned that the code may change drastically such that the patch will stop working.
Subject Author Posted

dav and dav_ext, mp4 module, PROPFIND not working for files

audvare June 28, 2014 02:26AM

Re: dav and dav_ext, mp4 module, PROPFIND not working for files

Roman Arutyunyan June 30, 2014 11:18AM

Re: dav and dav_ext, mp4 module, PROPFIND not working for files

audvare June 30, 2014 11:29AM

Re: dav and dav_ext, mp4 module, PROPFIND not working for files

audvare July 01, 2014 01:35AM

Re: dav and dav_ext, mp4 module, PROPFIND not working for files

Roman Arutyunyan July 01, 2014 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
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