remove duplicated werkzeug compat middleware

A typo that always chained the legacy middleware although not necessary.
This causes errors with certain configurations (gevent + ???).
This commit is contained in:
Martin Zimmermann 2016-09-20 22:00:55 +02:00
parent 4fc6d5ac33
commit 2542acfca8

View File

@ -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)