Fix Content-Disposition header missing attachment prefix#13093
Conversation
Add missing 'attachment;' directive to Content-Disposition headers in server.py to ensure browsers properly download files instead of attempting to display them inline. Fixes 4 instances in the file download endpoint.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change updates the 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
guill
left a comment
There was a problem hiding this comment.
Looks good, will merge once CI clears.
|
So now |
|
@guill @themachinehf Following is video from before this commit demonstrating the use of both these context menu options: msedge_nTWAlDXICv.mp4Below is video demonstrating the now abritrary changes in place and the two options performing essentially the same thing. msedge_6OmiLaPMf3.mp4I also made a comment on the actual commit here which lays out why this is bad change and suggest that if this is for the cloud then cut a branch for cloud instead: ea6880b#commitcomment-184423832 |
Adds missing attachment directive to Content-Disposition headers in server.py to ensure browsers properly download files instead of attempting to display them inline. Fixes 4 instances in the file download endpoint.