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

Add 'HEAD' to accepted HTTP verbs list #249

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

mvandenburgh
Copy link
Contributor

The actions decorator for defining endpoints in DRF seems to support HEAD requests, but the type stubs don't include it as an option.

@mvandenburgh
Copy link
Contributor Author

DRF PR adding support for HEAD requests: encode/django-rest-framework#4973

@intgr
Copy link
Contributor

intgr commented Nov 16, 2022

Thanks for this PR and sorry this has waited so long.

HEAD was already added to _MIXED_CASE_HTTP_VERBS in #273, but I missed _LOWER_CASE_HTTP_VERBS there.

I'll update this myself.

mvandenburgh and others added 2 commits November 16, 2022 16:21
HEAD was already added to _MIXED_CASE_HTTP_VERBS in typeddjango#273, but I missed _LOWER_CASE_HTTP_VERBS there.
@intgr intgr merged commit 95b370f into typeddjango:master Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants