- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_redirect_slashes_disabled (0.14 sec)
-
tests/test_router_redirect_slashes.py
response = client.get("/hello/", follow_redirects=False) assert response.status_code == 200 response = client.get("/hello", follow_redirects=False) assert response.status_code == 307 def test_redirect_slashes_disabled(): app = FastAPI(redirect_slashes=False) router = APIRouter() @router.get("/hello/") def hello_page() -> str: return "Hello, World!" app.include_router(router)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jun 22 10:37:50 UTC 2023 - 974 bytes - Viewed (0)