Generic views should provide a HEAD implementation
|Reported by:||j4mie||Owned by:||nobody|
|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.
Change History (14)
comment:1 Changed 4 years ago by j4mie
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Version changed from 1.2 to 1.3-rc1