diff --git a/internal/handler/version.go b/internal/handler/version.go index 13dda6b..2244c5f 100644 --- a/internal/handler/version.go +++ b/internal/handler/version.go @@ -481,6 +481,7 @@ func (h *VersionHandler) Download(c *fiber.Ctx) error { resArchivePath := filepath.Join(versionDir, "resource.zip") if info.Full { + c.Set("X-Update-Type", "full") return c.Status(fiber.StatusOK).Download(resArchivePath) } diff --git a/internal/model/model.go b/internal/model/model.go index e88d389..200a18f 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -62,7 +62,7 @@ type GetLatestVersionRequest struct { type QueryLatestResponseData struct { VersionName string `json:"version_name"` VersionNumber uint64 `json:"version_number"` - Url string `json:"url"` + Url string `json:"url,omitempty"` } type CreateVersionResponseData struct {