#15668: Generic views should provide a HEAD implementation
-----------------------------------------+----------------------
Reporter: j4mie | Owner: nobody
Status: new | Milestone:
Component: Generic views | Version: 1.3
Resolution: | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 1 |
-----------------------------------------+----------------------
Comment (by j4mie):
Interesting. I had no idea this was going to be a can of worms..
I've attached a new patch which maintains the same simple `head = get`
behaviour in the `View` class. I've simplified the tests to punt on
checking that `response.content = ''` (just check that
`response.status_code == 200`).
I can't find any tests for the current handling of `HEAD` requests, so I'm
not sure how much this behaviour has been thought through. Maybe this
issue should be raised separately.
--
Ticket URL: <http://code.djangoproject.com/ticket/15668#comment:6>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.