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()