Skip to content

Commit 810c51f

Browse files
DeepDiver1975emersion
authored andcommitted
webdav: PUT response has no body and therefore should not have a content length header
1 parent 21f251f commit 810c51f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ func (b *backend) Put(w http.ResponseWriter, r *http.Request) error {
199199
return err
200200
}
201201

202-
w.Header().Set("Content-Length", strconv.FormatInt(fi.Size, 10))
203202
if fi.MIMEType != "" {
204203
w.Header().Set("Content-Type", fi.MIMEType)
205204
}

0 commit comments

Comments
 (0)