webdav: add support for lock discovery

This commit is contained in:
Nicola Murino
2021-10-06 09:11:56 +02:00
parent ea01c3a125
commit 6eb154bb74
3 changed files with 19 additions and 15 deletions

View File

@@ -365,6 +365,9 @@ func writeLog(r *http.Request, status int, err error) {
if contentLength := r.Header.Get("Content-Length"); contentLength != "" {
fields["content_length"] = contentLength
}
if timeout := r.Header.Get("Timeout"); timeout != "" {
fields["timeout"] = timeout
}
if status != 0 {
fields["resp_status"] = status
}