added timestamp to download filename
This commit is contained in:
parent
b7da2bb648
commit
0db526a2d6
@ -85,7 +85,7 @@ async def client_token():
|
|||||||
data = jwt.encode(payload, key=key, headers=None, algorithm='RS256')
|
data = jwt.encode(payload, key=key, headers=None, algorithm='RS256')
|
||||||
|
|
||||||
response = StreamingResponse(iter([data]), media_type="text/plain")
|
response = StreamingResponse(iter([data]), media_type="text/plain")
|
||||||
response.headers["Content-Disposition"] = "attachment; filename=client_token.tok"
|
response.headers["Content-Disposition"] = f'attachment; filename=client_configuration_token_{datetime.now().strftime("%d-%m-%y-%H-%M-%S")}'
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user