Changes between Initial Version and Version 1 of Ticket #33976


Ignore:
Timestamp:
Sep 2, 2022, 4:19:56 AM (2 years ago)
Author:
Eric Burghard
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33976 – Description

    initial v1  
    33If 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
    44
    5 ```
     5{{{
    66Invalid 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}}}
    88
    99which can be fixed by changing `django.http.request.host_validation_re` to `_lazy_re_compile(r"[a-zA-z0-9.:]*")`
     
    1111but it also triggers an exception with `asgi.py`
    1212
    13 ```
     13{{{
    14142022/09/02 07:57:10 [alert] 422#422 [unit] Python failed to call 'loop.call_soon'
    1515Traceback (most recent call last):
     
    1818ValueError: invalid literal for int() with base 10: 'x:y:z:0:0:0:1'
    19192022/09/02 07:57:25 [alert] 422#422 [unit] #23: Python failed to create 'client' pair
    20 ```
     20}}}
Back to Top