|
@@ -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 {
|