Skip to content

Conversation

@mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Apr 28, 2025

Fixes #4584

@vercel
Copy link

vercel bot commented Apr 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2025 4:59pm
marimo-storybook ❌ Failed (Inspect) Apr 28, 2025 4:59pm

dmadisetti
dmadisetti previously approved these changes Apr 28, 2025
Copy link
Collaborator

@dmadisetti dmadisetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice adding a test, I remember this same block coming up a few times

@mscolnick mscolnick merged commit 2224e21 into main Apr 28, 2025
37 of 38 checks passed
@mscolnick mscolnick deleted the ms/use-proxy-scheme branch April 28, 2025 17:28
ws_url = urljoin(ws_target_url, ws_path)
if scope["scheme"] in ("http", "ws"):
scheme = urlparse(ws_url).scheme
if scheme in ("http", "ws"):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the target scheme is already ws or wss, I don't think it needs to be replaced?

Also, that might lead to an unexpected replacement with a target such as ws://example.com/http which would be replaced to ws://example.com/ws.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. i will fix this

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.

LSP doesn't work when using a reverse proxy

4 participants