summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2013-12-04 14:53:23 +0100
committerJulien Danjou <julien@danjou.info>2013-12-04 14:53:23 +0100
commit87e57c978045a357347895bd92230b101e8ab8b4 (patch)
tree55c499ac719dca90198fb455009449cf3b0b2ca0
parentfe8726422b3f7f95ccdf3eaca0472980c073aeb5 (diff)
downloadoslo-middleware-87e57c978045a357347895bd92230b101e8ab8b4.tar.gz
middleware.sizelimit: stop importing wsgi
This patches stops the sizelimit module to rely on the deprecated WSGI module. Change-Id: Ie804a74f833112f7d6d30f787f426d6f7ad0be2f
-rw-r--r--openstack/common/middleware/sizelimit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openstack/common/middleware/sizelimit.py b/openstack/common/middleware/sizelimit.py
index 0ec8fc7..856be5b 100644
--- a/openstack/common/middleware/sizelimit.py
+++ b/openstack/common/middleware/sizelimit.py
@@ -21,7 +21,6 @@ from oslo.config import cfg
import webob.dec
import webob.exc
-from openstack.common.deprecated import wsgi
from openstack.common.gettextutils import _ # noqa
from openstack.common.middleware import base
@@ -70,7 +69,7 @@ class LimitingReader(object):
class RequestBodySizeLimiter(base.Middleware):
"""Limit the size of incoming requests."""
- @webob.dec.wsgify(RequestClass=wsgi.Request)
+ @webob.dec.wsgify
def __call__(self, req):
if req.content_length > CONF.max_request_body_size:
msg = _("Request is too large.")