#15668: Generic views should provide a HEAD implementation
---------------------------+---------------------------
 Reporter:  j4mie          |         Owner:  nobody
   Status:  new            |     Milestone:
Component:  Generic views  |       Version:  1.2
 Keywords:                 |  Triage Stage:  Unreviewed
Has patch:  0              |
---------------------------+---------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15668>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to