Add missing parameter
This commit is contained in:
parent
d090e90ee2
commit
878a2b6bbf
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user