cubicweb/pyramid/pyramidctl.py
changeset 12590 a5d7fcde74c9
parent 12588 fa292e905edc
child 12601 f28a19408d3d
equal deleted inserted replaced
12589:85f82900f1c3 12590:a5d7fcde74c9
   386         warnings.warn(
   386         warnings.warn(
   387             'the "pyramid" command does not start repository "looping tasks" '
   387             'the "pyramid" command does not start repository "looping tasks" '
   388             'anymore; use the standalone "scheduler" command if needed'
   388             'anymore; use the standalone "scheduler" command if needed'
   389         )
   389         )
   390         try:
   390         try:
   391             waitress.serve(app, host=host, port=port, url_scheme=url_scheme)
   391             waitress.serve(app, host=host, port=port, url_scheme=url_scheme,
       
   392                            clear_untrusted_proxy_headers=True)
   392         finally:
   393         finally:
   393             repo.shutdown()
   394             repo.shutdown()
   394         if self._needreload:
   395         if self._needreload:
   395             return 3
   396             return 3
   396         return 0
   397         return 0