mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-07-01 00:48:53 +02:00
Requests to H2 console don't need transaction
This commit is contained in:
@@ -23,7 +23,7 @@ class TransactionFilter extends Filter {
|
||||
|
||||
def doFilter(req: ServletRequest, res: ServletResponse, chain: FilterChain): Unit = {
|
||||
val servletPath = req.asInstanceOf[HttpServletRequest].getServletPath()
|
||||
if(servletPath.startsWith("/assets/") || servletPath == "/git" || servletPath == "/git-lfs"){
|
||||
if(servletPath.startsWith("/assets/") || servletPath == "/console" || servletPath == "/git" || servletPath == "/git-lfs"){
|
||||
// assets and git-lfs don't need transaction
|
||||
chain.doFilter(req, res)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user