Monorepo for Tangled tangled.org

appview/repo: strip .tar.gz suffix from archive ref #929

merged opened by zzstoatzz.io targeting master from zzstoatzz.io/core: master

closes #365

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xbtmt2zjwlrfegqvch7fboei/sh.tangled.repo.pull/3mbkpou73je22
+1
Diff #0
+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
sign up or login to add to the discussion
zzstoatzz.io submitted #0
1 commit
expand
appview/repo: strip .tar.gz suffix from archive ref
expand 2 comments
pull request successfully merged