working commit

This commit is contained in:
2026-02-02 14:08:38 +02:00
parent 8e9c270972
commit c973fccc86
3 changed files with 45 additions and 12 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ import (
"mstore/app/router"
)
const zeroContentLength = "0"
func (hand *Handler) FileExists(rctx *router.Context) {
hand.logg.Debugf("Handle FileExists")
@@ -25,7 +27,7 @@ func (hand *Handler) FileExists(rctx *router.Context) {
rctx.SetHeader("X-Content-Type", res.ContentType)
rctx.SetHeader("X-Content-Length", res.ContentLength)
rctx.SetHeader("X-Content-Digest", res.ContentDigest)
rctx.SetHeader("Content-Length", "0")
rctx.SetHeader("Content-Length", zeroContentLength)
rctx.SetStatus(code)
}