Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAV header content #51

Open
bd46 opened this issue Nov 11, 2019 · 1 comment
Open

DAV header content #51

bd46 opened this issue Nov 11, 2019 · 1 comment

Comments

@bd46
Copy link

bd46 commented Nov 11, 2019

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);
@AnrDaemon
Copy link

See #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants