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

Dev: Improve static check #834

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Dev: Improve static check #834

merged 1 commit into from
Apr 14, 2020

Conversation

RaeesBhatti
Copy link
Contributor

- Summary
We were checking if path existed to determine if it was a static file request but that meant that directories also got a false positive. Now we're checking if there's a file on that path.
Fixes: #832

- Test plan
Described in #832 (comment)

- Description for the changelog

  • Use fs.stat instead of fs.existsSync
  • Check if stat.isFile()to make sure

- A picture of a cute animal (not mandatory but encouraged)
🙈

@RaeesBhatti RaeesBhatti merged commit e096577 into master Apr 14, 2020
@RaeesBhatti RaeesBhatti deleted the raees/improve-static-check branch April 14, 2020 20:59
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.

"Forbidden" error with redirected function in folder since v2.42.0
2 participants