flaskcode
flaskcode copied to clipboard
Unexpected argument in flask send_file() module
This error raises in Flask2.2.3:
response = send_file(file_path, mimetype='text/plain', cache_timeout=0)
TypeError: send_file() got an unexpected keyword argument 'cache_timeout'
I resolved this error in this pull req
Thanks this works!