Generic views should provide a HEAD implementation
|Reported by:||Jamie Matthews||Owned by:||nobody|
|Cc:||Tom Christie||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently, HEAD requests are responded to with
405 METHOD NOT ALLOWED and an
Allow: get header.
$ curl -I localhost:8000 HTTP/1.0 405 METHOD NOT ALLOWED Date: Wed, 23 Mar 2011 13:04:05 GMT Server: WSGIServer/0.1 Python/2.6.1 Content-Type: text/html; charset=utf-8 Allow: get
Generic views (or perhaps even the base View class?) should provide a
head() implementation that should probably just call the
get method (if present) and then throw away the content.