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

Fix empty ALLOW Response header for cls based View #929

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

singulared
Copy link
Contributor

@singulared singulared commented Jun 16, 2016

What do these changes do?

Fix empty ALLOW Response header for cls based View

We must check existing lower http method names for assembling
ALLOW header and passing into web.HTTPMethodNotAllowed.

Are there changes in behavior for the user?

yes

Related issue number

No issue

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

We must check existing lower http method names for assembing
ALLOW header and passing into web.HTTPMethodNotAllowed.
@asvetlov
Copy link
Member

asvetlov commented Jul 6, 2016

Very sorry for late answer but you are asking for ability to write def get() instead of def GET() as I understand.
Why?

@singulared
Copy link
Contributor Author

Hi! i think lowercase is more pythonic. In other case i did't have valid ALLOW response header if i use def get(). But i can use it as request handler.

@singulared
Copy link
Contributor Author

Docs use lowercase methods:
http://aiohttp.readthedocs.io/en/stable/web_reference.html#view

@asvetlov asvetlov merged commit f90f988 into aio-libs:0.21 Jul 7, 2016
@asvetlov
Copy link
Member

asvetlov commented Jul 7, 2016

Ok.
Thanks!

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants