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

Falcon handler: do not use deprecated resp.body #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vytas7
Copy link

@vytas7 vytas7 commented Oct 9, 2024

It is a bit tricky to keep supporting Falcon 2.0 (which is 6 year old now), but assuming this is desirable, I changed resp.body to resp.data, since that already exists in 2.0, and we don't need to branch on version even more.

resp.body has been deprecated throughout the 3.0 cycle (more than 3 years), and it is removed in Falcon 4.0.

Note that test/falcon_test.py seems to require at least Falcon 3.1, so I had to tweak them to verify 2.0 compatibility, but I didn't commit these changes. I did verify it still passed on 2.0 and Python 3.8.

It is a bit tricky to keep supporting Falcon 2.0 (which is 6 year old now), but
assuming this is desirable, I changed `resp.body` to `resp.data`, since that
already exists in 2.0, and we don't need to branch on version even more.

`resp.body` has been deprecated throughout the 3.0 cycle (more than 3 years),
and it will be removed in Falcon 4.0 (a stable release is planned soon).
@DeanLangford
Copy link

👍

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

Successfully merging this pull request may close these issues.

3 participants