#32580 closed Cleanup/optimization (fixed)
Document that HttpRequest.get_host() can raise DisallowedHost
Reported by: | Chris Jerdonek | Owned by: | SREEHARI K.V |
---|---|---|---|
Component: | Documentation | Version: | 3.1 |
Severity: | Normal | Keywords: | HttpRequest |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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