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 serving files with query params #1169

Merged
merged 1 commit into from
Apr 11, 2018
Merged

Fix serving files with query params #1169

merged 1 commit into from
Apr 11, 2018

Conversation

devongovett
Copy link
Member

If query params containing a dot character were on a request to /, they would get treated as the file extension. This parses the pathname from the requested URL and matches the extname against that instead. Fixes #1164.

@travcunn
Copy link

I'm looking forward to this release

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Apr 19, 2018

@travcunn it has already been released in 1.7.1, together with a bunch of other bug fixes

@lucaseverett
Copy link

lucaseverett commented Jul 7, 2018

@devongovett While this is working for query params, it still happens when part of a URL path contains a dot. I'm running into this with a SPA that passes an encoded URI component that contains a dot in the path.

Eg. http://localhost:1234/test.string

I started a new issue for this.
#1684

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.

4 participants