#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 mtredinnick):
What is the actual problem you are trying to fix, arien? (Let's set aside
co-opting an existing ticket for a different purpose). HEAD requests
''already'' don't return any content. So there's no problem there. Don't
make hand-wavy analogies to absolute URLs, they have nothing to do with
HEAD requests. What is an example of something that you think should work
that does not work with the current code?
We already set content length to 0 for 304 response codes and Django
itself never returns a 204: if somebody does return a response like that,
it's up to them to also not return any content, we aren't going to do
introspection on a response that is generated by the user.
--
Ticket URL: <http://code.djangoproject.com/ticket/5898#comment:7>
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
-~----------~----~----~----~------~----~------~--~---