Skip to content

Commit f8d0319

Browse files
committed
v2.5.5
1 parent 5b7d2dc commit f8d0319

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/release-notes/changelog.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@
33
2.x Changelog
44
=============
55

6+
.. changelog:: 2.5.5
7+
:date: 2024/02/04
8+
9+
.. change:: Fix scope ``state`` key handling
10+
:type: bugfix
11+
:pr: 3070
12+
13+
Fix a regression introduced in #2751 that would wrongfully assume the ``state``
14+
key is always present within the ASGI Scope. This is *only* the case when the
15+
Litestar root application is invoked first, since we enforce such a key there,
16+
but the presence of that key is not actually guaranteed by the ASGI spec and
17+
some servers, such as hypercorn, do not provide it.
18+
19+
620
.. changelog:: 2.5.4
7-
:date: 2024-01-31
21+
:date: 2024/01/31
822

923
.. change:: Handle ``KeyError`` when `root_path` is not present in ASGI scope
1024
:type: bugfix

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ maintainers = [
5757
name = "litestar"
5858
readme = "README.md"
5959
requires-python = ">=3.8,<4.0"
60-
version = "2.5.4"
60+
version = "2.5.5"
6161

6262
[project.urls]
6363
Blog = "https://blog.litestar.dev"

0 commit comments

Comments
 (0)