fix: git redirect
This commit is contained in:
parent
1bfa5df0c8
commit
31cb348a62
@ -131,8 +131,8 @@ func ConfigRoute(c *fiber.Ctx) error{
|
||||
}
|
||||
|
||||
for _, cur := range configs {
|
||||
if cur.Name == name {
|
||||
return c.Redirect(cur.Redirect)
|
||||
if cur.Name == name || cur.Name+".git" == name {
|
||||
return c.Status(301).Redirect(cur.Redirect)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user