Skip to content

Conversation

@WilStead
Copy link

@WilStead WilStead commented Aug 4, 2024

Updates HttpServer._serveStream to check a set of whitelisted path extensions when the original path is not found.

This fixes #611 as originally stated, and also allows users to support additional extensions relevant to their own project. It also allows users to disable the feature by assigning an empty list in the settings, in case the behavior is unwanted.

Adds a new setting to configure the extension whitelist, which defaults to '.html' and '.htm'

@WilStead
Copy link
Author

WilStead commented Aug 4, 2024

@microsoft-github-policy-service agree

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.

Live Preview does not resolve file when html extension is not provided.

2 participants