1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

Merge pull request #242 from dingedi/main

update deprecated parameter name
This commit is contained in:
Dingedi 2022-04-07 16:12:19 +02:00 committed by GitHub
commit 8c2f3678cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,7 +681,7 @@ def create_app(args):
download_filename.pop(0)
download_filename = '.'.join(download_filename)
return send_file(return_data, as_attachment=True, attachment_filename=download_filename)
return send_file(return_data, as_attachment=True, download_name=download_filename)
@app.post("/detect")
@access_check