Merge pull request #42 from nvllsvm/xheaders

Default xheaders to true
This commit is contained in:
Gavin M. Roy 2020-09-22 10:04:36 -04:00 committed by GitHub
commit 9fdb071247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ def run(create_application, settings=None, log_config=_unspecified):
X-Real-IP, to get the user's IP address instead of attributing all
traffic to the load balancer's IP address. When running behind a load
balancer like nginx, it is recommended to pass xheaders=True. The default
value is False if nothing overrides it.
value is True if nothing overrides it.
"""
from . import runner

View file

@ -77,7 +77,7 @@ class Runner:
"""
signal.signal(signal.SIGTERM, self._on_signal)
signal.signal(signal.SIGINT, self._on_signal)
xheaders = self.application.settings.get('xheaders', False)
xheaders = self.application.settings.get('xheaders', True)
max_body_size = self.application.settings.get('max_body_size', None)
max_buffer_size = self.application.settings.get('max_buffer_size',
None)