From 810c51fa2d38ba62ca3971524f9cc322a6a504f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:31:55 +0200 Subject: [PATCH] webdav: PUT response has no body and therefore should not have a content length header --- server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server.go b/server.go index 5175159..3f7ea13 100644 --- a/server.go +++ b/server.go @@ -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) }