webdav: PUT response has no body and therefore should not have a content length header

This commit is contained in:
Thomas Müller 2024-06-06 16:31:55 +02:00 committed by Simon Ser
parent 21f251fa1d
commit 810c51fa2d

View File

@ -199,7 +199,6 @@ func (b *backend) Put(w http.ResponseWriter, r *http.Request) error {
return err
}
w.Header().Set("Content-Length", strconv.FormatInt(fi.Size, 10))
if fi.MIMEType != "" {
w.Header().Set("Content-Type", fi.MIMEType)
}