jazzband / django-downloadview

Serve files with Django.
https://django-downloadview.readthedocs.io
Other
364 stars 58 forks source link

Use safer check in RealDownloadMiddleware #204

Open sevdog opened 11 months ago

sevdog commented 11 months ago

As pointed in #184 RealDownloadMiddleware fails to correctly process a file which has name attribute but not url, giving a false response.

Also this simplify the whole logic of the RealDownloadMiddleware.is_download_response method.