flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

Handle Werkzeug 2.1.0 change to Response.autocorrect_location_header.

Open stacywsmith opened this issue 2 years ago • 0 comments

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.

stacywsmith avatar Apr 02 '22 14:04 stacywsmith