sftpgo-mirror/webdavd
Nicola Murino fc9082c422
webdav: try to handle HEAD for collection too
The underlying golang webdav library returns Method Not Allowed for
HEAD requests on directories:

https://github.com/golang/net/blob/master/webdav/webdav.go#L210

let's see if we can workaround this inside SFTPGo itself in a similar
way as we do for GET.

The HEAD response will not return a Content-Length, we cannot handle
this inside SFTPGo.

Fixes #294
2021-02-03 22:36:13 +01:00
..
file.go add Data At Rest Encryption support 2020-12-05 13:48:13 +01:00
handler.go add sftpfs storage backend 2020-12-12 10:31:09 +01:00
internal_test.go post-login hook: add the full user JSON serialized 2021-01-26 18:05:44 +01:00
mimecache.go webdav: performance improvements and bug fixes 2020-11-04 19:11:40 +01:00
server.go webdav: try to handle HEAD for collection too 2021-02-03 22:36:13 +01:00
webdavd.go mutal TLS: add support for revocation lists 2021-01-03 17:03:04 +01:00
webdavd_test.go webdav: try to handle HEAD for collection too 2021-02-03 22:36:13 +01:00