docs: https://docs.djangoproject.com/en/3.1/ref/request-
response/#django.http.HttpRequest.get_host
I think it would be helpful to mention that so people using the method can
know to think about whether they need to handle that case.
--
Ticket URL: <https://code.djangoproject.com/ticket/32580>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: HTTP handling => Documentation
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32580#comment:1>
* owner: nobody => sreehari1997
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32580#comment:2>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/14181 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32580#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"0860db225a4a7059c0884c87c0a7aa0035fd0d36" 0860db22]:
{{{
#!CommitTicketReference repository=""
revision="0860db225a4a7059c0884c87c0a7aa0035fd0d36"
Fixed #32580 -- Doc'd that HttpRequest.get_host() may raise
DisallowedHost.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32580#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"5ebb8e65dfddc70b0e91add0232fcb074006f571" 5ebb8e6]:
{{{
#!CommitTicketReference repository=""
revision="5ebb8e65dfddc70b0e91add0232fcb074006f571"
[3.2.x] Fixed #32580 -- Doc'd that HttpRequest.get_host() may raise
DisallowedHost.
Backport of 0860db225a4a7059c0884c87c0a7aa0035fd0d36 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32580#comment:5>