Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lauxley opened this issue Nov 25, 2016 · 0 comments
Closed

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

lauxley opened this issue Nov 25, 2016 · 0 comments
Labels
Milestone

Comments

@lauxley
Copy link

lauxley commented Nov 25, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants