Skip to content

A "pure" HEAD request on a ViewSet does'nt behave like a GET #4705

Closed
@lauxley

Description

@lauxley

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions