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

bug accessing stored decoded request #115

Closed
benmccann opened this issue Aug 25, 2021 · 0 comments
Closed

bug accessing stored decoded request #115

benmccann opened this issue Aug 25, 2021 · 0 comments

Comments

@benmccann
Copy link
Contributor

@hannoeru suggested in vitejs/vite#4728 (comment) that he found a bug here:

let pathname = !!req._decoded && req.path || parse(req, true).pathname;

I think perhaps that line should change to the following?

let pathname = !!req._decoded && req._parsedUrl.pathname || parse(req, true).pathname;
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

No branches or pull requests

1 participant