diff --git a/rero_ils/modules/ext.py b/rero_ils/modules/ext.py index ffec3f7dd5..8e13e0fe6a 100644 --- a/rero_ils/modules/ext.py +++ b/rero_ils/modules/ext.py @@ -186,6 +186,12 @@ def init_config(self, app): for k in dir(app.config): if k.startswith('RERO_ILS_APP_'): app.config.setdefault(k, getattr(app.config, k)) + # add keep alive support for angular application + # NOTE: this will not work for werkzeug> 2.1.2 + # https://werkzeug.palletsprojects.com/en/2.2.x/changes/#version-2-1-2 + if app.config.get('DEBUG'): + from werkzeug.serving import WSGIRequestHandler + WSGIRequestHandler.protocol_version = "HTTP/1.1" def register_signals(self, app): """Register signals."""