Changes between Initial Version and Version 1 of Ticket #33976
- Timestamp:
- Sep 2, 2022, 4:19:56 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33976 – Description
initial v1 3 3 If I'm not mistaken, brackets are optional for an ipv6 address without port number. The problem is that it confuses django. In `asgi.py` we have 4 4 5 ``` 5 {{{ 6 6 Invalid HTTP_HOST header: '2001:x:y:z:0:0:0:1'. The domain name provided is not valid according to RFC 1034/1035. 7 ``` 7 }}} 8 8 9 9 which can be fixed by changing `django.http.request.host_validation_re` to `_lazy_re_compile(r"[a-zA-z0-9.:]*")` … … 11 11 but it also triggers an exception with `asgi.py` 12 12 13 ``` 13 {{{ 14 14 2022/09/02 07:57:10 [alert] 422#422 [unit] Python failed to call 'loop.call_soon' 15 15 Traceback (most recent call last): … … 18 18 ValueError: invalid literal for int() with base 10: 'x:y:z:0:0:0:1' 19 19 2022/09/02 07:57:25 [alert] 422#422 [unit] #23: Python failed to create 'client' pair 20 ``` 20 }}}