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 #2736 - remove explicit check for list as a return value in make_response #2737

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

jesseops
Copy link

This PR addresses an issue introduced in #2256 which breaks a custom response class that supports returning lists from view functions.

A list is not an expected response value and is not intended to be handled by make_response. I'm unsure why it made it's way into this instance check, but there are no consequences to removing it, based on what I can see in the tests & related code.

@jesseops jesseops changed the title fix #2736 - allow lists to be passed through to response_class init fix #2736 - remove explicit check for list as a return value in make_response Apr 27, 2018
@davidism davidism added this to the 1.0.1 milestone Apr 27, 2018
@davidism
Copy link
Member

Give me a second, I need to change this to be against 1.0-maintenance.

@davidism davidism changed the base branch from master to 1.0-maintenance April 27, 2018 17:52
@davidism
Copy link
Member

davidism commented Apr 27, 2018

OK, your fork is probably going to be messed up after this, since you made the PR from your master and I just force pushed it to look like 1.0-maintenance. You can probably fix it by fetching and force pushing origin/master and origin/1.0-maintenance to your fork once this is merged, or just delete and fork again.

In the future, remember to make PRs from branches to avoid this.

@davidism davidism merged commit d4fb9d5 into pallets:1.0-maintenance Apr 27, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants