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

[Builder] Decode URLs before dumping to file #170

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

ogizanagi
Copy link
Member

@ogizanagi ogizanagi commented Mar 1, 2023

so that the file path does not contains URL-encoded chars anymore,
which would prevent serving them properly.

I have an application that includes some PDFs files rendered through a controller, where the original file might contain spaces that would be encoded in the URL (%20). Without this patch, the resulting file contains the encoded chars (e.g: recipes/stockholm%20mule.pdf). So once build statically, it cannot be served as expected.

Bonus: 🍸

@ogizanagi ogizanagi added the bug Something isn't working label Mar 1, 2023
@ogizanagi ogizanagi requested a review from Tom32i March 1, 2023 09:09
so that the file path does not contains URL-encoded chars anymore,
which would prevent serving them properly.
@ogizanagi ogizanagi merged commit feda005 into master Mar 1, 2023
@ogizanagi ogizanagi deleted the builder-url-decode branch March 1, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants