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.
Change History (14)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Version:||1.2 → 1.3-rc1|