fix DAV class from 2 to 1,2 (like apache) - #46
Conversation
|
|
Отличная страница, читал ее. На мой взгляд, вполне можно исправить в коде то, что не работает по дефолту. Кстати, вопрос по этой странице, я так и не понял, зачем в конфиг ставить ограничение client_max_body_size 50m; Фактически, это значит, что файлы больше 50 мб загрузить на этот сервер не получится? |
|
Not, that means requests with body part larger than 50MB of declared length won't be handled by the server. |
|
@avlubimov Насколько я понял, всё то что я хакаю в конфиге - это отклонение от стандарта описанного в RFC.
|
I have found that most clients require a dav class1 to work
For example, davfs2 or fuse-wdfs check class1 and if they don't find it, they write it.
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
I checked with wireshark that the lua-nginx-module puts the header "dav"="2" while the apache server puts the header "dav"="1,2" and therefore davfs and wdfs work with apache without problems and do not work with nginx.
The proposed patch displays the dav version as well as apache.