Skip to content

Fix API downloads ignoring ProxyDownload configuration#376

Closed
utafrali wants to merge 1 commit intoForceu:masterfrom
utafrali:fix/issue-375-bug-files-are-always-proxied-when-downlo
Closed

Fix API downloads ignoring ProxyDownload configuration#376
utafrali wants to merge 1 commit intoForceu:masterfrom
utafrali:fix/issue-375-bug-files-are-always-proxied-when-downlo

Conversation

@utafrali
Copy link

@utafrali utafrali commented Mar 3, 2026

Fixes #375

API downloads were always being proxied regardless of the ProxyDownload configuration. The issue was that forceDecryption was checked before the ProxyDownload config, causing it to return early and never evaluate the setting.

Updated the logic to only force decryption when the file is actually encrypted (forceDecryption && file.Encryption.IsEncrypted). This lets the ProxyDownload configuration work as intended for API calls.

Added a test case that covers this scenario to make sure both paths work correctly.

@Forceu
Copy link
Owner

Forceu commented Mar 3, 2026

Thank you for the PR, however I am afraid that the issue already got fixed in a081d9b :/

@utafrali
Copy link
Author

utafrali commented Mar 3, 2026

No worries, glad it's already taken care of. Closing this one out.

@utafrali utafrali closed this Mar 3, 2026
@utafrali
Copy link
Author

utafrali commented Mar 3, 2026

ah didn't see that commit, closing this

@Forceu
Copy link
Owner

Forceu commented Mar 3, 2026

Thank you very much anyway :)

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.

Bug: Files are always proxied when downloading through API

2 participants