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 Tornado Backend #971

Merged
merged 1 commit into from
Apr 23, 2023
Merged

Fix Tornado Backend #971

merged 1 commit into from
Apr 23, 2023

Conversation

rmorshea
Copy link
Collaborator

@rmorshea rmorshea commented Apr 23, 2023

Issues

WSGIContainer.environ changed from a staticmethod to an instance method.

Summary

Since we don't actually need a WSGI app and just want the ability to convert Tornado requests to an environ dict we create a dummy WSGIContainer and call its environ method. Thankfully, the only thing that seems to depend on the WSGIContainer itself is threading info according to the diff.

Checklist

  • Tests have been included for all bug fixes or added functionality.
  • The changelog.rst has been updated with any significant changes.

Specifically it changed from a staticmethod to an instance one.
This happened in Tornado 6.3. See:
tornadoweb/tornado#3231 (comment)
@rmorshea rmorshea marked this pull request as ready for review April 23, 2023 06:15
@rmorshea rmorshea merged commit 46bdf8c into main Apr 23, 2023
@rmorshea rmorshea deleted the fix-tornado-backend branch April 23, 2023 06:18
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.

None yet

1 participant