working commit
This commit is contained in:
+3
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user