starlette/starlette
Marcelo Trylesinski 4633427816
Don't omit `Content-Length` header for `Content-Length: 0` cases (#1395)
* Add content-length header by default

* Add test for #1099

* Revert changes and add tests

* Check if is StreamingResponse or FileResponse before adding content-length headers

* Change conditional logic to check if body is present
2022-01-07 12:48:21 +01:00
..
middleware Prevent anyio.ExceptionGroup in error views under a BaseHTTPMiddleware (#1262) 2021-10-28 18:50:33 +02:00
__init__.py Version 0.17.1 (#1338) 2021-11-17 17:10:27 +01:00
_compat.py fix: pass usedforsecurity to hashlib.md5 to fix error on FIPS-enabled systems (#1366) 2021-12-17 06:37:33 -06:00
applications.py fix application `exception_handlers` type hints (#1360) 2021-12-22 13:57:28 +01:00
authentication.py Add authentication requires args length check (#1335) 2021-11-15 22:54:03 +01:00
background.py Replaced mutable default argument with None to eliminate anti-pattern (#1173) 2021-04-28 17:24:42 +08:00
concurrency.py anyio integration (#1157) 2021-06-18 15:48:43 +01:00
config.py add typing overloads for Config.__call__ (#1097) 2021-09-18 12:44:11 +02:00
convertors.py Add a UUID convertor (#903) 2020-04-21 19:24:55 +01:00
datastructures.py Fix ImmutableMultiDict getlist return type (#1235) 2021-09-26 00:50:03 +02:00
endpoints.py Allow head method httpendpoint (#1346) 2021-11-27 18:40:57 +01:00
exceptions.py fix application `exception_handlers` type hints (#1360) 2021-12-22 13:57:28 +01:00
formparsers.py Updates to python 3.6+ syntax (#1189) 2021-05-27 19:54:43 +01:00
py.typed Add py.typed to package 2019-04-09 23:01:54 +08:00
requests.py Fix url_path_for typehints (#1341) 2021-11-30 19:13:08 +01:00
responses.py Don't omit `Content-Length` header for `Content-Length: 0` cases (#1395) 2022-01-07 12:48:21 +01:00
routing.py Fix Mypy errors in routing and testclient (#1372) 2021-12-16 10:45:05 +01:00
schemas.py Ensure pyyaml is installed before actually using it (#833) 2020-02-19 10:37:21 +00:00
staticfiles.py Don't omit `Content-Length` header for `Content-Length: 0` cases (#1395) 2022-01-07 12:48:21 +01:00
status.py Add missing status codes (#1096) 2020-11-23 17:06:26 +01:00
templating.py Update the Jinja2Templates() constructor to allow PathLike (#1292) 2021-09-26 23:46:04 +02:00
testclient.py Additional headers for WS `accept` message. (#1361) 2022-01-06 11:55:29 +01:00
types.py ASGI 3 (#435) 2019-03-19 16:03:19 +00:00
websockets.py Additional headers for WS `accept` message. (#1361) 2022-01-06 11:55:29 +01:00