For previous discussion on this, see this ticket:
https://code.djangoproject.com/ticket/15668
* Graham Dumpleton disagrees with your first point: "Python web
applications should never themselves discard the response content for
HEAD requests. They should always return the request content and allow
the underlying WSGI server or hosting web server to discard the
request content."
* My original implementation of the "head" method on the View base
class [1] *did* check whether the view already has a "get" method.
This was later changed in [2] to the current semantics which, I agree,
looks a bit wrong. Perhaps we should revert to the original behaviour?
[1] https://github.com/django/django/commit/c7fe43
[2] https://github.com/django/django/commit/760d0f
> 2. Improve the default HTTP HEAD handler by ensuring it has a blank body,For previous discussion on this, see this ticket:
> as this is the expectation of a response to a HEAD request. Also, there
> should be consideration for the GET handler not existing, which should
> result in a 405. The code appears to assume it exists, which would result
> in an AttributeError instead.
https://code.djangoproject.com/ticket/15668
* Graham Dumpleton disagrees with your first point: "Python web
applications should never themselves discard the response content for
HEAD requests. They should always return the request content and allow
the underlying WSGI server or hosting web server to discard the
request content."
* My original implementation of the "head" method on the View base
class [1] *did* check whether the view already has a "get" method.
This was later changed in [2] to the current semantics which, I agree,
looks a bit wrong. Perhaps we should revert to the original behaviour?
[1] https://github.com/django/django/commit/c7fe43
[2] https://github.com/django/django/commit/760d0f
Not sure. What would be the procedure for getting this changed? Open a
new ticket, I assume?
--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To post to this group, send email to django-d...@googlegroups.com.
To unsubscribe from this group, send email to django-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
Thanks,
Jamie