From 2542acfca8131a7985e2ca6d06dbae281963e4c2 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Tue, 20 Sep 2016 22:00:55 +0200 Subject: [PATCH] remove duplicated werkzeug compat middleware A typo that always chained the legacy middleware although not necessary. This causes errors with certain configurations (gevent + ???). --- isso/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/__init__.py b/isso/__init__.py index ff8f6b4..7795c4f 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -194,7 +194,7 @@ def make_app(conf=None, threading=True, multiprocessing=False, uwsgi=False): allowed=("Origin", "Referer", "Content-Type"), exposed=("X-Set-Cookie", "Date"))) - wrapper.extend([wsgi.SubURI, ProxyFix, wsgi.LegacyWerkzeugMiddleware]) + wrapper.extend([wsgi.SubURI, ProxyFix]) if werkzeug.version.startswith("0.8"): wrapper.append(wsgi.LegacyWerkzeugMiddleware)