Opened 18 years ago

Closed 17 years ago

#4360 closed (fixed)

Docs incorrectly say that response.content would contain a 302 URL

Reported by: simon-django@… 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)

testing.diff (822 bytes ) - added by John Shaffer <jshaffer2112@…> 17 years ago.
tiny patch

Download all attachments as: .zip

Change History (5)

comment:1 by John Shaffer <jshaffer2112@…>, 17 years ago

Triage Stage: UnreviewedAccepted
Version: 0.96SVN

This is correct. With a 302 redirect, response.content contains nothing while response['Location'] contains the new URL.

by John Shaffer <jshaffer2112@…>, 17 years ago

Attachment: testing.diff added

tiny patch

comment:2 by John Shaffer <jshaffer2112@…>, 17 years ago

Has patch: set

comment:3 by Simon G. <dev@…>, 17 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [6147]) Fixed #4360 -- Corrected where HTTP headers are in the test response. Also noted that it is an extension of HttpResponse, not a simpler object. Thanks, John Shaffer for the first part.

Note: See TracTickets for help on using tickets.
Back to Top