From 5d86d6c8a55258708aa0a9596b9e0c7132e58e45 Mon Sep 17 00:00:00 2001 From: gabriel giovanini de souza Date: Wed, 8 Dec 2021 20:38:41 +0100 Subject: Adiciona support para HEAD metodo --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f86611f..50d4138 100644 --- a/main.py +++ b/main.py @@ -70,7 +70,7 @@ async def load_titles() -> Iterator[str]: xml_str = response.content return filter_titles_xml(xml_str) - +@app.head("/") @app.get("/", response_class=XMLResponse) async def root(q: str = ''): return await load_and_filter(q) -- cgit v1.2.3