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

default to HTML file proxy unless uri is http or https (#4939) #4945

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

sharon-wang
Copy link
Member

Backports the fix for #4930 to the 2024.10 release by cherry-picking the commit from #4939.

- Addresses #4930

On Windows, a file path has scheme `C`, which was not handled in
#4855. I had assumed local
file paths would all have scheme `file`, but that is not the case on
Windows!

I've updated the logic to start a generic HTTP proxy server when the
scheme is `http` or `https`, but to assume all other paths are HTML file
paths.

The behaviour of `startHtmlProxyServer` before
#4855 was to always start an
HTML proxy server, so this PR restores that assumption by always
starting an HTML proxy server unless we have an `http`/`https` URL (in
which case we want to start a generic proxy server).

### QA Notes

See #4930 for repro notes.

Co-authored-by: sharon wang <[email protected]>
@jmcphers jmcphers merged commit 901ab5d into prerelease/2024.10 Oct 8, 2024
1 check passed
@jmcphers jmcphers deleted the fix-html-content-in-viewer-windows branch October 8, 2024 16:26
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants