I happened to be so that split_domain_port(host) from
django/http/request.py returns a pair of empty strings as
host_validation_re doesn't allow underscore.
I agree that according to RFC it's not possible to have underscore in a
hostname, but here we are dealing with domain names and it's totally fine
to have underscore in a domain name.
--
Ticket URL: <https://code.djangoproject.com/ticket/26550>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* component: Uncategorized => HTTP handling
* needs_tests: => 0
* needs_docs: => 0
* resolution: => duplicate
Comment:
Duplicate of #19952
--
Ticket URL: <https://code.djangoproject.com/ticket/26550#comment:1>