mirror of
https://github.com/django/daphne.git
synced 2025-11-14 14:35:17 +03:00
The headers on my environment aren't bytes, rather str-s, and so getting the host and port from those will result None being passed as a result. Also, since X-Forwarded-For is not to be trusted, and custom nginx configurations can pass a `X-Real-IP` header, add two extra command line parameters to be able to parse custom passed remote IP headers. |
||
|---|---|---|
| .. | ||
| http_base.py | ||
| http_strategies.py | ||
| test_cli.py | ||
| test_http_request.py | ||
| test_http_response.py | ||
| test_utils.py | ||
| test_websocket.py | ||