From 878a2b6bbf6555dbe4b169adbbec32e8a78ba489 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Tue, 7 May 2024 16:50:41 +0200 Subject: [PATCH] Add missing parameter --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 16e8a55..02dc5a8 100644 --- a/app/main.py +++ b/app/main.py @@ -86,7 +86,7 @@ async def root_get(ipaddress: Annotated[Union[IPv4Address,IPv6Address], ''' Look up geolocation for ip in path parameter ''' - locations = await root_post([IPAddressParam(ip=ipaddress)]) + locations = await root_post([IPAddressParam(ip=ipaddress)], response) if locations: response.headers['Cache-Control'] = 'private, max-age=604800' return locations.pop()