Opened 4 years ago
Closed 4 years ago
#32760 closed Bug (needsinfo)
Host value misinterpreted locally
| Reported by: | Isaac Thiessen | Owned by: | nobody |
|---|---|---|---|
| Component: | HTTP handling | Version: | 3.2 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The value of request.META["SERVER_NAME"] does not match the host that the request was made to.
When I add a host to my /etc/hosts file and make a request to it.
When the host is localhost, I am seeing that request.META["SERVER_NAME"] is coming out as 3cdd0c05c30d.
This issue does not appear to be happening in production for the company that I work for. I am currently running Django inside of Docker Compose.
Change History (2)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
| Resolution: | → needsinfo |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Can you explain where Django is at fault? Otherwise, I'm not sure there's enough information here to debug your issue.