-
Notifications
You must be signed in to change notification settings - Fork 333
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
Change to Response.autocorrect_location_header in Werkzeug 2.1.0 causing test failure. #426
Labels
bug
Something isn't working
Comments
stacywsmith
added a commit
to stacywsmith/flask-restx
that referenced
this issue
Apr 2, 2022
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.
cedricbonhomme
added a commit
to monarc-project/stats-service
that referenced
this issue
May 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pallets/werkzeug#2352 changed the default value of
Response.autocorrect_location_header
fromTrue
toFalse
in Werkzeug >= 2.1.0.tests/legacy/test_api_legacy.py::APITest::test_redirect
currently depends uponResponse.autocorrect_location_header
beingTrue
.Repro Steps (if applicable)
Expected Behavior
Tests should pass.
Actual Behavior
tests/legacy/test_api_legacy.py::APITest::test_redirect
fails with:Environment
The text was updated successfully, but these errors were encountered: