#31768: `django.http.request` `validate_domains` - should be optional "Invalid
HTTP_HOST header"
-------------------------------------+-------------------------------------
     Reporter:  Mateusz Kurowski     |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  HTTP handling        |                  Version:  3.0
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 [https://en.wikipedia.org/wiki/Hostname#Syntax Underscores are not
 permitted in hostnames].  Remove the `_`:

 {{{
 >>> from django.http.request import split_domain_port
 >>> split_domain_port('my_service:8000')
 ('', '')
 >>> split_domain_port('myservice.com:8000')
 ('myservice.com', '8000')
 >>> split_domain_port('my-service.com:8000')
 ('my-service.com', '8000')
 }}}

 Please see TicketClosingReasons/UseSupportChannels.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31768#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.28a50178d14020e80b34bf983699dbb0%40djangoproject.com.

Reply via email to