-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat: manage static assets properly in Unix and Windows #229
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for taking care of this and for adding a nice amount of tests.
Just a comment, I know actix filters this for us now, but I wonder about the logic itself, if we cannot rely on that filtering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
* feat: manage static assets properly in Unix and Windows * feat: add more e2e tests to validate static assets
Since URIs use
/
as the separator,wws
didn't return static assets in a subfolder in Windows. I took the opportunity to refactor part of the code and add tests to ensurewws
calculates asset paths properly. For that, I split the process into different steps:public
folder that points to a possible static assetI included a battery of tests for those methods and I'm planning to add some e2e tests for static assets.