Skip to content

Commit

Permalink
v2.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: Janek Nouvertné <[email protected]>
  • Loading branch information
provinzkraut committed Nov 6, 2023
1 parent 9095e3b commit b0dd1ee
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 56 deletions.
31 changes: 31 additions & 0 deletions docs/release-notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
2.x Changelog
=============

.. changelog:: 2.3.2
:date: 2023/11706

.. change:: Fix recursion error when re-using the path of a route handler for static files
:type: bugfix
:pr: 2630
:issue: 2629

A regression was fixed that would cause a recursion error when the path of a
static files host was reused for a route handler with a different HTTP method.

.. code-block:: python
from litestar import Litestar
from litestar import post
from litestar.static_files import StaticFilesConfig
@post("/uploads")
async def handler() -> None:
pass
app = Litestar(
[handler],
static_files_config=[
StaticFilesConfig(directories=["uploads"], path="/uploads"),
],
)
.. changelog:: 2.3.1
:date: 2023/11/04

Expand Down
122 changes: 67 additions & 55 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ maintainers = [
name = "litestar"
readme = "README.md"
requires-python = ">=3.8,<4.0"
version = "2.3.1"
version = "2.3.2"

[project.urls]
Blog = "https://blog.litestar.dev"
Expand Down

0 comments on commit b0dd1ee

Please sign in to comment.