django/tests/handlers
Carlton Gibson bcd255cd5c Fixed #35354 -- Simplified ASGIRequest path handling.
Following the ASGI HTTP Connection Scope docs[0], the provided `path`
is already the correct value that Django requires.

In combination with `root_path`, from which `script_name` is derived,
the `path_info` variable is set. It's then redundant to
re-calculate `path` from `script_name` and `path_info`.

See also, a clarifying discussion on the ASGIref repo[1].

[0]: https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope
[1]: https://github.com/django/asgiref/issues/424
2024-04-05 11:35:38 +02:00
..
templates
__init__.py
test_exception.py Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files. 2023-02-14 08:18:40 +01:00
tests.py Fixed #35354 -- Simplified ASGIRequest path handling. 2024-04-05 11:35:38 +02:00
tests_custom_error_handlers.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urls.py Fixed #34342, Refs #33735 -- Fixed test client handling of async streaming responses. 2023-02-17 10:48:04 +01:00
views.py Fixed #34342, Refs #33735 -- Fixed test client handling of async streaming responses. 2023-02-17 10:48:04 +01:00