You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Subhash Dasyam
06eccbf077
fix: add null-byte protection to SSE 'event' field for symmetry with 'id'
`_check_event_no_newline` lacked a `\0` check that `_check_id_no_null_or_newline`
has had since the original implementation. Similarly, `format_sse_event()` stripped
`\0` from `id` but not from `event`.
Changes:
- Extend `_check_event_no_newline` to also reject `\0` characters
- Strip `\0` in `format_sse_event()` for `event` (mirrors existing `id` behavior)
- Add `test_server_sent_event_null_event_rejected` regression test
`event` and `id` are now fully symmetric in both the model validator and the
low-level wire formatter.
4 months ago
..
.agents/skills/ fastapi
📝 Update Skill, optimize context, trim and refactor into references (#15031)
4 months ago
_compat
👷 Add `ty` to precommit (#15091)
4 months ago
dependencies
👷 Add `ty` to precommit (#15091)
4 months ago
middleware
📝 Use `WSGIMiddleware` from `a2wsgi` instead of deprecated `fastapi.middleware.wsgi.WSGIMiddleware` (#14756)
5 months ago
openapi
👷 Add `ty` to precommit (#15091)
4 months ago
security
📝 Fix duplicated words in docstrings (#15116)
4 months ago
__init__.py
🔖 Release version 0.135.1
4 months ago
__main__.py
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935)
2 years ago
applications.py
👷 Add `ty` to precommit (#15091)
4 months ago
background.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
cli.py
👷 Add `ty` to precommit (#15091)
4 months ago
concurrency.py
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564)
7 months ago
datastructures.py
👷 Add `ty` to precommit (#15091)
4 months ago
encoders.py
👷 Add `ty` to precommit (#15091)
4 months ago
exception_handlers.py
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0 (#14077)
10 months ago
exceptions.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
logger.py
🔊 Refactor logging (#781)
7 years ago
param_functions.py
👷 Add `ty` to precommit (#15091)
4 months ago
params.py
👷 Add `ty` to precommit (#15091)
4 months ago
py.typed
✨ add py.typed to ship typing information (#209)
7 years ago
requests.py
⬆ Require Pydantic > 1.0 (#1862)
6 years ago
responses.py
✨ Add support for Server Sent Events (#15030)
4 months ago
routing.py
👷 Add `ty` to precommit (#15091)
4 months ago
sse.py
fix: add null-byte protection to SSE 'event' field for symmetry with 'id'
4 months ago
staticfiles.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
templating.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
testclient.py
✨ Improve type annotations, add support for mypy --strict, internally and for external packages (#2547)
6 years ago
types.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
utils.py
🎨 Update internal types for Python 3.10 (#14898)
5 months ago
websockets.py
✨ Export `WebSocketState` in `fastapi.websockets` (#4376)
4 years ago