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:
parent
4fc6d5ac33
commit
2542acfca8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user