mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #16605 from mvdbeek/drop_recursive_middleware
[23.1] Drop RecursiveMiddleware
This commit is contained in:
@@ -1285,12 +1285,6 @@ def wrap_in_middleware(app, global_conf, application_stack, **local_conf):
|
||||
normalize_remote_user_email=conf.get("normalize_remote_user_email", False),
|
||||
),
|
||||
)
|
||||
# The recursive middleware allows for including requests in other
|
||||
# requests or forwarding of requests, all on the server side.
|
||||
if asbool(conf.get("use_recursive", True)):
|
||||
from paste import recursive
|
||||
|
||||
app = wrap_if_allowed(app, stack, recursive.RecursiveMiddleware, args=(conf,))
|
||||
|
||||
# Error middleware
|
||||
app = wrap_if_allowed(app, stack, ErrorMiddleware, args=(conf,))
|
||||
|
||||
@@ -86,12 +86,6 @@ def wrap_in_middleware(app, global_conf, application_stack, **local_conf):
|
||||
# wrapped around the application (it can interact poorly with
|
||||
# other middleware):
|
||||
app = wrap_if_allowed(app, stack, httpexceptions.make_middleware, name="paste.httpexceptions", args=(conf,))
|
||||
# The recursive middleware allows for including requests in other
|
||||
# requests or forwarding of requests, all on the server side.
|
||||
if asbool(conf.get("use_recursive", True)):
|
||||
from paste import recursive
|
||||
|
||||
app = wrap_if_allowed(app, stack, recursive.RecursiveMiddleware, args=(conf,))
|
||||
|
||||
# Error middleware
|
||||
app = wrap_if_allowed(app, stack, ErrorMiddleware, args=(conf,))
|
||||
|
||||
@@ -259,12 +259,7 @@ def wrap_in_middleware(app, global_conf, application_stack, **local_conf):
|
||||
normalize_remote_user_email=conf.get("normalize_remote_user_email", False),
|
||||
),
|
||||
)
|
||||
# The recursive middleware allows for including requests in other
|
||||
# requests or forwarding of requests, all on the server side.
|
||||
if asbool(conf.get("use_recursive", True)):
|
||||
from paste import recursive
|
||||
|
||||
app = wrap_if_allowed(app, stack, recursive.RecursiveMiddleware, args=(conf,))
|
||||
# Transaction logging (apache access.log style)
|
||||
if asbool(conf.get("use_translogger", True)):
|
||||
from paste.translogger import TransLogger
|
||||
|
||||
Reference in New Issue
Block a user