Explorar o código

auto update script executed

Toby Chui %!s(int64=2) %!d(string=hai) anos
pai
achega
6d1a4493cf
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 {