flask-restx
flask-restx copied to clipboard
Handle Werkzeug 2.1.0 change to Response.autocorrect_location_header.
Fixes #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.