Instead of manually setting some HTTP headers, prefer to use django
FileResponse class that set those.
It fixes the download of raw files with non ascii filenames.
Fixes SWH-WEBAPP-3YS.
Differential D8836
browse: Use django FileResponse in browse-content-raw view anlambert on Nov 14 2022, 1:43 PM. Authored by Tags None Subscribers None
Details
Instead of manually setting some HTTP headers, prefer to use django It fixes the download of raw files with non ascii filenames. Fixes SWH-WEBAPP-3YS.
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D8836 (id=31848)Rebasing onto ed38856c60... Current branch diff-target is up to date. Changes applied before testcommit ad8558c69d882a8a4453c7c6e04b4aeac384ec0d Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Mon Nov 14 13:41:07 2022 +0100 browse: Use django FileResponse in browse-content-raw view Instead of manually setting some HTTP headers, prefer to use django FileResponse class that set those. It fixes the download of raw files with non ascii filenames. See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/2129/ for more details. |