mirror of
https://github.com/1f349/go-webdav.git
synced 2025-01-21 06:46:28 +00:00
webdav: PUT response has no body and therefore should not have a content length header
This commit is contained in:
parent
21f251fa1d
commit
810c51fa2d
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user