#32580 closed Cleanup/optimization (fixed)
Document that HttpRequest.get_host() can raise DisallowedHost
Description ¶
The Django docs currently don't mention that HttpRequest.get_host()
can raise DisallowedHost
:
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.
Change History (5)
comment:1 by , 4 years ago
Component: | HTTP handling → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 4 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
PR