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

Roman Arutyunyan arut at nginx.com
Tue Jul 1 16:28:07 UTC 2014


On 01 Jul 2014, at 09:35, audvare <nginx-forum at nginx.us> wrote:

> 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.

Committing this into upstream is not planned.


More information about the nginx mailing list