-
from typing import Annotated
from litestar import Litestar, get, Response
from litestar.params import Parameter
@get("/")
def example(text: Annotated[str, Parameter()]) -> Response:
return Response(text)
app = Litestar([example]) curl "http://localhost:8000/?text=тест"
curl "http://localhost:8000/?text=prüfen" This returns Is there a way to change this behavior? |
Beta Was this translation helpful? Give feedback.
Answered by
Alc-Alc
Feb 24, 2024
Replies: 1 comment 1 reply
-
Heya, I don't think anything is wrong with Litestar here. You have to url-encode your query parameter in your curl request.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MrPandir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Heya, I don't think anything is wrong with Litestar here. You have to url-encode your query parameter in your curl request.