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

Handle Werkzeug 2.1.0 change to Response.autocorrect_location_header. #427

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

Commits on Apr 2, 2022

  1. Handle Werkzeug 2.1.0 change to Response.autocorrect_location_header.

    Fixes python-restx#426
    
    pallets/werkzeug#2352 changed the default value of Response.autocorrect_location_header from True to False in Werkzeug >= 2.1.0.
    
    tests/legacy/test_api_legacy.py::APITest::test_redirect depended upon Response.autocorrect_location_header being True.
    
    Change `test_redirect()` to explicitly set `Response.autocorrect_location_header` to `False`, for backwards compatibility, and change the expected result for the test from an absolute URL to the relative URL.
    stacywsmith committed Apr 2, 2022
    Configuration menu
    Copy the full SHA
    bb3e9dd View commit details
    Browse the repository at this point in the history