Merge branch 'rawfix' into nilix
Iris Lightshard nilix@nilfm.cc
2 files changed,
2 insertions(+),
2 deletions(-)
M
routes/handler.go
→
routes/handler.go
@@ -42,7 +42,7 @@ mux.HandleFunc("/", d.Index, "GET")
mux.HandleFunc("/static/:file", d.ServeStatic, "GET") mux.HandleFunc("/:name", d.Multiplex, "GET", "POST") mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET") - mux.HandleFunc("/:name/blob/raw/:ref/...", d.ServeStaticInRepo, "GET") + mux.HandleFunc("/:name/raw/:ref/...", d.ServeStaticInRepo, "GET") mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET") mux.HandleFunc("/:name/log/:ref", d.Log, "GET") mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET")
M
routes/util.go
→
routes/util.go
@@ -28,7 +28,7 @@ func transformRelativeURLs(html, repoName, mainBranch string) string {
return strings.ReplaceAll( html, "=\"./", - fmt.Sprintf("=\"/%s/blob/raw/%s/", repoName, mainBranch)) + fmt.Sprintf("=\"/%s/raw/%s/", repoName, mainBranch)) } func (d *deps) isIgnored(name string) bool {