8000 fix: content-disposition-header added by ekansh2 · Pull Request #5234 · iv-org/invidious · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: content-disposition-header added #5234

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekansh2
Copy link
@ekansh2 ekansh2 commented Apr 9, 2025

Added content-disposition-header for downloading the file.

Closes #5211

@ekansh2 ekansh2 requested a review from a team as a code owner April 9, 2025 19:30
@ekansh2 ekansh2 requested review from SamantazFox and removed request for a team April 9, 2025 19:30
@@ -321,6 +321,9 @@ module Invidious::Routes::Watch
env.params.query["title"] = filename
env.params.query["label"] = URI.decode_www_form(label.as_s)

# Set content disposition header to force download
env.response.headers["Content-Disposition"] = "attachment; filename=\"#{filename}\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

[Enhancement] Support content-disposition header in subtitles endpoint
2 participants
0