A "pure" HEAD request on a ViewSet does'nt behave like a GET · Issue #4705 · encode/django-rest-framework (original) (raw)

A HEAD request on a ViewSet let the action attribute empty.
curl -I http://myhost/api/foo/

It should fallback to simulate a GET request for everything but the rendering.
Meaning self.action should be either 'list' or 'retrieve'.

Note: curl -I -XGET [...] behaves as expected.