Skip to content

Commit 65cac22

Browse files
committed
replace HTMLURL with APIURL
1 parent 7fbdb60 commit 65cac22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/repo/release.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ func (r *Release) APIURL() string {
120120

121121
// ZipURL the zip url for a release. release must have attributes loaded
122122
func (r *Release) ZipURL() string {
123-
return r.Repo.HTMLURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".zip"
123+
return r.Repo.APIURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".zip"
124124
}
125125

126126
// TarURL the tar.gz url for a release. release must have attributes loaded
127127
func (r *Release) TarURL() string {
128-
return r.Repo.HTMLURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".tar.gz"
128+
return r.Repo.APIURL() + "/archive/" + util.PathEscapeSegments(r.TagName) + ".tar.gz"
129129
}
130130

131131
// HTMLURL the url for a release on the web UI. release must have attributes loaded

0 commit comments

Comments
 (0)