Skip to content

fix(cos): missing response-content-disposition header when enable not sign for CDN url (#2546)#3202

Merged
HFO4 merged 2 commits intocloudreve:masterfrom
YUDONGLING:fix-tencent-cos-response-content-disposition-header-20260117.1
Jan 23, 2026
Merged

fix(cos): missing response-content-disposition header when enable not sign for CDN url (#2546)#3202
HFO4 merged 2 commits intocloudreve:masterfrom
YUDONGLING:fix-tencent-cos-response-content-disposition-header-20260117.1

Conversation

@YUDONGLING
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the response-content-disposition header was incorrectly being cleared for public-read buckets in Tencent Cloud COS, preventing proper file download behavior with correct filenames.

Changes:

  • Removed code that was clearing the ContentDescription field for public (non-signed) URLs, which was based on an incorrect assumption that public URLs don't support response headers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@YUDONGLING YUDONGLING changed the title fix(cos): missing response-content-disposition header for public-read bucket (#2546) fix(cos): missing response-content-disposition header when enable not sign for CDN url (#2546) Jan 17, 2026
@HFO4 HFO4 merged commit 2ecc7f4 into cloudreve:master Jan 23, 2026
1 of 2 checks passed
@HFO4
Copy link
Copy Markdown
Member

HFO4 commented Jan 23, 2026

Thanks!

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.

3 participants