summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openstack/common/middleware/base.py6
-rw-r--r--openstack/common/middleware/sizelimit.py3
2 files changed, 1 insertions, 8 deletions
diff --git a/openstack/common/middleware/base.py b/openstack/common/middleware/base.py
index 7236731..2099549 100644
--- a/openstack/common/middleware/base.py
+++ b/openstack/common/middleware/base.py
@@ -28,11 +28,7 @@ class Middleware(object):
@classmethod
def factory(cls, global_conf, **local_conf):
"""Factory method for paste.deploy."""
-
- def filter(app):
- return cls(app)
-
- return filter
+ return cls
def __init__(self, application):
self.application = application
diff --git a/openstack/common/middleware/sizelimit.py b/openstack/common/middleware/sizelimit.py
index ecbdde1..23ba9b6 100644
--- a/openstack/common/middleware/sizelimit.py
+++ b/openstack/common/middleware/sizelimit.py
@@ -71,9 +71,6 @@ class LimitingReader(object):
class RequestBodySizeLimiter(base.Middleware):
"""Limit the size of incoming requests."""
- def __init__(self, *args, **kwargs):
- super(RequestBodySizeLimiter, self).__init__(*args, **kwargs)
-
@webob.dec.wsgify(RequestClass=wsgi.Request)
def __call__(self, req):
if req.content_length > CONF.max_request_body_size: