mirror of
https://github.com/sprockets/sprockets.http.git
synced 2024-11-14 11:19:26 +00:00
Default xheaders to true
This commit is contained in:
parent
bc19924904
commit
7c5f9ca0dd
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue