aboutsummaryrefslogtreecommitdiff
path: root/handle_repo_tree.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-11 19:57:27 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-11 19:57:27 +0800
commit3e979b6aae5603bf08021a49a95fe6a576496dae (patch)
treeb3c69a38833cafe6840ae66558d311244f29917a /handle_repo_tree.go
parentstyle.css, *.html: Scrolling behavior (diff)
downloadforge-3e979b6aae5603bf08021a49a95fe6a576496dae.tar.gz
forge-3e979b6aae5603bf08021a49a95fe6a576496dae.tar.zst
forge-3e979b6aae5603bf08021a49a95fe6a576496dae.zip
*.go: Reformat
Diffstat (limited to 'handle_repo_tree.go')
-rw-r--r--handle_repo_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle_repo_tree.go b/handle_repo_tree.go
index 1ef7179..2c1c31e 100644
--- a/handle_repo_tree.go
+++ b/handle_repo_tree.go
@@ -54,7 +54,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request) {
return
}
if len(raw_path_spec) != 0 && raw_path_spec[len(raw_path_spec)-1] == '/' {
- http.Redirect(w, r, "../" + path_spec, http.StatusSeeOther)
+ http.Redirect(w, r, "../"+path_spec, http.StatusSeeOther)
return
}
file_contents, err := file.Contents()