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

cleanup req, res initializations in Router.default_response #456

Merged

Conversation

laggardkernel
Copy link

In Router.default_response(), for a "http" type scope, 404 exc is raised directly as resp (handled by exc middleware).
No need to initialize Request, Response.

For a "http" type scope, 404 exc is raised directly as resp.
No need to initialize Request, Response.
Copy link
Collaborator

@taoufik07 taoufik07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch !

@taoufik07 taoufik07 merged commit 6ff47ad into kennethreitz:master Mar 24, 2021
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

2 participants