Opened 18 years ago
Closed 17 years ago
#4360 closed (fixed)
Docs incorrectly say that response.content would contain a 302 URL
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.
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 , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is correct. With a 302 redirect,
response.content
contains nothing whileresponse['Location']
contains the new URL.