Skip to content

Accept capitalization in HTTP upgrade header in web#150961

Merged
alexdima merged 1 commit intomicrosoft:mainfrom
robinkar:capitalized-upgrade-header
Jun 1, 2022
Merged

Accept capitalization in HTTP upgrade header in web#150961
alexdima merged 1 commit intomicrosoft:mainfrom
robinkar:capitalized-upgrade-header

Conversation

@robinkar
Copy link
Copy Markdown
Contributor

@robinkar robinkar commented Jun 1, 2022

This PR makes VS Code web accept capitalization in HTTP upgrade header instead of only accepting Upgrade: websocket.

This solves a bug where the websocket connection fails with status 1006 when running VS Code web behind an Apache proxy that is using mod_proxy_wstunnel since mod_proxy_wstunnel sends the header Upgrade: WebSocket.
Relevant discussion about this bug can be found here.

@robinkar robinkar force-pushed the capitalized-upgrade-header branch from 5bb7f87 to 05c412c Compare June 1, 2022 12:11
@bpasero bpasero assigned alexdima and unassigned bpasero Jun 1, 2022
@alexdima alexdima added this to the May 2022 milestone Jun 1, 2022
Copy link
Copy Markdown
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

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

Thank you!

@alexdima alexdima enabled auto-merge (squash) June 1, 2022 12:36
@alexdima alexdima merged commit 37fb265 into microsoft:main Jun 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2022
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.

5 participants