#5898: HeadMiddleware - Modify response for HEAD requests
--------------------------------------------------------+-------------------
Reporter: Scott Barr <[EMAIL PROTECTED]> | Owner: nobody
Status: reopened | Component:
HTTP handling
Version: SVN | Resolution:
Keywords: | Stage:
Unreviewed
Has_patch: 1 | Needs_docs:
0
Needs_tests: 0 | Needs_better_patch:
0
--------------------------------------------------------+-------------------
Comment (by arien <[EMAIL PROTECTED]>):
This new patch changes the handlers so that they run two fix-ups (for
absolute URIs in redirects and removing content from responses to HEAD
requests or with status codes 1xx, 204, and 304) after any response
middleware. These fix-ups will not run if converting the incoming request
to the handler's request_class fails; doing this would IMHO needlessly
complicate the code.
This change is backwards compatible.
Although I think the idea is sound, I'm not submitting patches for docs or
tests because there may be a nicer way to implement this.
--
Ticket URL: <http://code.djangoproject.com/ticket/5898#comment:6>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---