Skip to content

Commit

Permalink
fix: external redirect (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin authored Jul 30, 2024
1 parent efa3c39 commit 689c195
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions litestar_vite/inertia/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def __init__(
and pass redirect url.
"""
super().__init__(
content=kwargs.get("content", ""),
content=b"",
status_code=HTTP_409_CONFLICT,
headers={"X-Inertia": "true", "X-Inertia-Location": quote(redirect_to, safe="/#%[]=:;$&()+,!?*@'~")},
headers={"X-Inertia-Location": quote(redirect_to, safe="/#%[]=:;$&()+,!?*@'~")},
cookies=request.cookies,
**kwargs,
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ license = { text = "MIT" }
name = "litestar-vite"
readme = "README.md"
requires-python = ">=3.8"
version = "0.2.7"
version = "0.2.8"

[project.urls]
Changelog = "https://cofin.github.io/litestar-vite/latest/changelog"
Expand Down

0 comments on commit 689c195

Please sign in to comment.