fix: Set HNS address cache to 7 days
All checks were successful
Build Docker / Build Image (push) Successful in 34s
All checks were successful
Build Docker / Build Image (push) Successful in 34s
This commit is contained in:
parent
66acd69bec
commit
20d59f7820
@ -70,7 +70,8 @@ def wallet(path):
|
|||||||
address = requests.get('http://100.66.107.77:8080')
|
address = requests.get('http://100.66.107.77:8080')
|
||||||
# Set cookie
|
# Set cookie
|
||||||
resp = make_response(address.text, 200, {'Content-Type': 'text/plain'})
|
resp = make_response(address.text, 200, {'Content-Type': 'text/plain'})
|
||||||
resp.set_cookie('HNS', address.text)
|
# Cookie should last 1 week
|
||||||
|
resp.set_cookie('HNS', address.text, max_age=604800)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user