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

Skip URI parameters when serving a directory (http_server) #1677

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

robiwano
Copy link
Contributor

When serving a directory, an URI such as http://127.0.0.1/flutter_service_worker.js?v=666216136 will fail because the HTTP server thinks the URI parameter is part of the filename. This PR drops the URI parameters when serving a directory.

@gdamore
Copy link
Contributor

gdamore commented Aug 23, 2023

This looks reasonable. I want to make sure that the sanitize is correct. Stay tuned.

@gdamore gdamore self-requested a review August 23, 2023 18:24
@gdamore gdamore merged commit f5e3a10 into nanomsg:master Aug 23, 2023
6 of 8 checks passed
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.

2 participants