Preserve filename directive for attachments
What does this MR do and why?
Preserve filename directive for attachments
Continue overriding filename directive when content-disposition is inline to avoid rendering xml.
Avoid overriding filename directive when content-disposition is attachment.
Contributes to: #409688 (closed)
How to set up and validate locally
- Create a project
- Commit some xml files to it
- Try to download the raw files see that it downloads with the correct filename by clicking the download icon
- Try requesting the raw file and see that the content disposition header has filename directive (
filename=blob
) e.gcurl -v http://gdk.test:3000/root/raw-files-project/-/raw/main/xml_stuff.xml
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #409688 (closed)
Edited by Jerry Seto