dufs/src
Aneesh Agrawal 604ccc6556
fix: status code for MKCOL on existing resource (#142)
* Fix status code for MKCOL on existing resource

Per https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1,
MKCOL should return a 405 if the resource already exists.

Impetus for this change:
I am using dufs as a webdav server for [Joplin](https://joplinapp.org/)
which interpreted the previous behavior of returning a 403 as an error,
preventing syncing from working.

* add test

Co-authored-by: sigoden <sigoden@gmail.com>
2022-11-10 18:41:10 +08:00
..
args.rs chore: undo hidden arg changes 2022-09-09 21:30:27 +08:00
auth.rs chore: cargo clippy 2022-11-10 15:38:35 +08:00
log_http.rs feat: support customize http log format (#116) 2022-07-31 08:27:09 +08:00
logger.rs feat: use custom logger with timestamp in rfc3339 (#67) 2022-06-21 21:19:51 +08:00
main.rs chore: fix typo 2022-08-03 08:51:12 +08:00
server.rs fix: status code for MKCOL on existing resource (#142) 2022-11-10 18:41:10 +08:00
streamer.rs fix: range request (#44) 2022-06-16 10:24:32 +08:00
tls.rs chore: cargo clippy 2022-11-10 15:38:35 +08:00
utils.rs fix: hide path by ext name (#126) 2022-08-06 07:48:34 +08:00