How exactly should I handle a HEAD request in Django?
So ... assuming my view looks like this...
def handle_request(request):
if request.method == 'POST': return do_post(request)
elif request.method == 'GET': return do_get(request)
elif request.method == 'HEAD': return do_head(request)
... what should the do_head method return? The W3 standard says "The
HEAD method is identical to GET except that the server MUST NOT return
a message-body in the response".
How exactly do I not return a message body though? Do I just return
None? Do I return the response I would for a GET and then modify it
somehow?
Thanks in advance!
-- Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---