webdav: PUT response has no body and therefore should not have a content length header
This commit is contained in:
@@ -199,7 +199,6 @@ func (b *backend) Put(w http.ResponseWriter, r *http.Request) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Set("Content-Length", strconv.FormatInt(fi.Size, 10))
|
|
||||||
if fi.MIMEType != "" {
|
if fi.MIMEType != "" {
|
||||||
w.Header().Set("Content-Type", fi.MIMEType)
|
w.Header().Set("Content-Type", fi.MIMEType)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user