Opened 18 years ago
Closed 18 years ago
#4360 closed (fixed)
Docs incorrectly say that response.content would contain a 302 URL
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Keywords: | ||
| 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
http://www.djangoproject.com/documentation/0.96/testing/#testing-responses
In the table under property 'content', it states that response.content will contain the URL when a 302 response is received. However, that's not the case. The URL is returned in responseLocation.
Attachments (1)
Change History (5)
comment:1 by , 18 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Version: | 0.96 → SVN |
comment:2 by , 18 years ago
| Has patch: | set |
|---|
comment:3 by , 18 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:4 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is correct. With a 302 redirect,
response.contentcontains nothing whileresponse['Location']contains the new URL.