Skip to content

Commit

Permalink
webdav: PUT response has no body and therefore should not have a cont…
Browse files Browse the repository at this point in the history
…ent length header
  • Loading branch information
DeepDiver1975 authored and emersion committed Jun 6, 2024
1 parent 21f251f commit 810c51f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 810c51f

Please sign in to comment.