Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
6d1a4493cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      router.go

+ 2 - 1
router.go

@@ -34,7 +34,8 @@ func AuthFsHandler(handler http.Handler) http.Handler {
 		if strings.HasPrefix(r.URL.Path, "/web.ssh/") {
 			requestPath := r.URL.Path
 			if !strings.HasSuffix(requestPath, "/") {
-				requestPath = requestPath + "/"
+				http.Redirect(w, r, requestPath+"/", http.StatusTemporaryRedirect)
+				return
 			}
 			parts := strings.Split(requestPath, "/")
 			if len(parts) > 2 {