+1
-1
appview/pages/markup/markdown.go
+1
-1
appview/pages/markup/markdown.go
···
235
235
repoName := fmt.Sprintf("%s/%s", rctx.RepoInfo.OwnerDid, rctx.RepoInfo.Name)
236
236
237
237
query := fmt.Sprintf("repo=%s&ref=%s&path=%s&raw=true",
238
-
repoName, url.PathEscape(rctx.RepoInfo.Ref), actualPath)
238
+
url.PathEscape(repoName), url.PathEscape(rctx.RepoInfo.Ref), actualPath)
239
239
240
240
parsedURL := &url.URL{
241
241
Scheme: scheme,
+1
-2
appview/repo/repo.go
+1
-2
appview/repo/repo.go
···
11
11
"log/slog"
12
12
"net/http"
13
13
"net/url"
14
-
"path"
15
14
"path/filepath"
16
15
"slices"
17
16
"strconv"
···
710
709
}
711
710
712
711
// fetch the raw binary content using sh.tangled.repo.blob xrpc
713
-
repoName := path.Join("%s/%s", f.OwnerDid(), f.Name)
712
+
repoName := fmt.Sprintf("%s/%s", f.OwnerDid(), f.Name)
714
713
blobURL := fmt.Sprintf("%s://%s/xrpc/sh.tangled.repo.blob?repo=%s&ref=%s&path=%s&raw=true",
715
714
scheme, f.Knot, url.QueryEscape(repoName), url.QueryEscape(ref), url.QueryEscape(filePath))
716
715