closes #365
+1
appview/repo/archive.go
+1
appview/repo/archive.go
···
18
18
l := rp.logger.With("handler", "DownloadArchive")
19
19
ref := chi.URLParam(r, "ref")
20
20
ref, _ = url.PathUnescape(ref)
21
+
ref = strings.TrimSuffix(ref, ".tar.gz")
21
22
f, err := rp.repoResolver.Resolve(r)
22
23
if err != nil {
23
24
l.Error("failed to get repo and knot", "err", err)
History
1 round
2 comments
zzstoatzz.io
submitted
#0
1 commit
expand
collapse
appview/repo: strip .tar.gz suffix from archive ref
allows /archive/main.tar.gz to work like /archive/main
for compatibility with github-style archive URLs
https://tangled.org/tangled.org/core/issues/365