Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use safer check in RealDownloadMiddleware #204

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

sevdog
Copy link
Contributor

@sevdog sevdog commented Jul 27, 2023

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.

@sevdog sevdog force-pushed the fix-realdownload-check branch from bd90c1f to d385cbb Compare July 31, 2024 14:19
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.74%. Comparing base (fba10f7) to head (d385cbb).
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
+ Coverage   85.73%   85.74%   +0.01%     
==========================================
  Files          67       67              
  Lines        1297     1291       -6     
==========================================
- Hits         1112     1107       -5     
+ Misses        185      184       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tari tari merged commit 71488c4 into jazzband:master Jul 31, 2024
13 of 15 checks passed
@sevdog sevdog deleted the fix-realdownload-check branch August 1, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants