diff --git a/receive.go b/receive.go index 9b89cad..a3d001b 100644 --- a/receive.go +++ b/receive.go @@ -138,7 +138,9 @@ func receiveObject(c *fasthttp.RequestCtx, cli object.Service_GetClient) error { } } - typ = http.DetectContentType(obj.Payload) + if len(obj.Payload) > 0 { + typ = http.DetectContentType(obj.Payload) + } if _, err = c.Write(obj.Payload); err != nil { return err