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

refactor make_response to be easier to follow #2256

Merged
merged 1 commit into from Apr 25, 2017
Merged

refactor make_response to be easier to follow #2256

merged 1 commit into from Apr 25, 2017

Commits on Apr 25, 2017

  1. refactor make_response to be easier to follow

    * be explicit about how tuples are unpacked
    * allow bytes for status value
    * allow Headers for headers value
    * use TypeError instead of ValueError
    * errors are more descriptive
    * document that view must not return None
    * update documentation about return values
    * test more response types
    * test error messages
    
    closes #1676
    davidism committed Apr 25, 2017
    Copy the full SHA
    697f7b9 View commit details
    Browse the repository at this point in the history