Skip to content

Commit 28402a9

Browse files
committed
fix: changed redirect behavior with latest Flask versions
1 parent a38bd21 commit 28402a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy/test_api_legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def get(self):
375375

376376
resp = client.get("/api")
377377
assert resp.status_code == 302
378-
assert resp.headers["Location"] == "http://localhost/"
378+
assert resp.headers["Location"] == "/"
379379

380380
def test_calling_owns_endpoint_before_api_init(self):
381381
api = restx.Api()

0 commit comments

Comments
 (0)