Skip to content
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

fix(proxy): handle more content-disposition edge cases #3100

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

hassan254-prog
Copy link
Contributor

Refactored the response handling to cover more edge cases. Instead of checking if the content-disposition header is exactly equal to attachment, we now check if it includes attachment or inline, allowing for more flexibility. This change improves the handling of different content types by considering both attachment and inline dispositions.

Initially this was producing a malformed response with the dropbox and front providers, but after the fix, it works as expected.

@hassan254-prog hassan254-prog requested a review from a team December 3, 2024 09:37
@hassan254-prog hassan254-prog self-assigned this Dec 3, 2024
@khaliqgant khaliqgant enabled auto-merge (squash) December 3, 2024 12:26
@khaliqgant khaliqgant merged commit 564a703 into master Dec 3, 2024
21 checks passed
@khaliqgant khaliqgant deleted the wari/fix-proxy branch December 3, 2024 16:29
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