Skip to content

Commit

Permalink
feat: adjust the response header
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliothmoon committed Jan 12, 2025
1 parent 41daec6 commit 86c3e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/handler/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 86c3e62

Please sign in to comment.