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

OPTIONS method should return a header "dav: 1, 2" instead of just "dav: 2" #57

Open
trupf opened this issue May 9, 2020 · 1 comment

Comments

@trupf
Copy link

trupf commented May 9, 2020

Class 2 compliant resources will minimally return the values "1" and "2" in the DAV header of all responses to the HTTP OPTIONS method.

So your module begging from line 504 shout actually read:

    ngx_str_set(&h->key, "DAV");
    h->value.len = 1;
    h->value.data = (u_char *) (dlcf->shm_zone ? "1, 2" : "1");
    h->hash = 1;

Some clients like for example LibreOffice even require class 1 to be explicitly specified. I had to add a line to the webdav location config file to make it working with LibreOffice:

"more_set_headers -s 200 'dav: 1, 2'; "

With the above modification this would not be neccessary.

@AnrDaemon
Copy link

See #46

mid1221213 added a commit to mid1221213/nginx-dav-ext-module that referenced this issue Nov 5, 2021
mid1221213 added a commit to mid1221213/nginx-dav-ext-module that referenced this issue Nov 5, 2021
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