mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-04 19:16:45 +01:00
add more routes to the "expensive" list (#36290)
backport: https://github.com/go-gitea/gitea/pull/35547 closes https://github.com/go-gitea/gitea/issues/36229 Signed-off-by: Steven Noonan <steven@uplinklabs.net> Co-authored-by: Steven Noonan <steven@uplinklabs.net>
This commit is contained in:
parent
76b6e94b5b
commit
e9c14723b6
@ -44,9 +44,11 @@ func isRoutePathExpensive(routePattern string) bool {
|
||||
"/{username}/{reponame}/blame/",
|
||||
"/{username}/{reponame}/commit/",
|
||||
"/{username}/{reponame}/commits/",
|
||||
"/{username}/{reponame}/compare/",
|
||||
"/{username}/{reponame}/graph",
|
||||
"/{username}/{reponame}/media/",
|
||||
"/{username}/{reponame}/raw/",
|
||||
"/{username}/{reponame}/rss/branch/",
|
||||
"/{username}/{reponame}/src/",
|
||||
|
||||
// issue & PR related (no trailing slash)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user