nginx-dav-ext-module
nginx-dav-ext-module copied to clipboard
DAV header content
trafficstars
When locks are anabled, mount.davfs from davfs2 package fails to mount, with reply that resource is not webav share. The reason is content of header "DAV:2". But as stated in https://docs.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2003/aa142827(v%3Dexchg.65) , "The value of the DAV header is a list of all compliance classes that the resource supports... Class 2 compliant resources will minimally return the values "1" and "2" in the DAV header of all responses to the HTTP OPTIONS method." Patch:
--- ngx_http_dav_ext_module.c.orig 2018-12-17 11:45:12.000000000 +0300
+++ ngx_http_dav_ext_module.c 2019-11-11 20:53:25.341578780 +0300
@@ -503,7 +503,7 @@
ngx_str_set(&h->key, "DAV");
h->value.len = 1;
- h->value.data = (u_char *) (dlcf->shm_zone ? "2" : "1");
+ h->value.data = (u_char *) (dlcf->shm_zone ? "1,2" : "1");
h->hash = 1;
h = ngx_list_push(&r->headers_out.headers);
See #46