mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-10-26 18:05:28 +03:00 
			
		
		
		
	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') | ||||
| 
 | ||||
|     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 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Oscar Krause
						Oscar Krause