mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 22:00:59 +01:00
cd73d8b686
The serve-web command's websocket proxy spawned the client-side hyper connection without `.with_upgrades()`, so `hyper::upgrade::on(&mut res)` rejected the upgrade with "upgrade expected but low level API in use" and the websocket failed to establish. - Spawn `connection.with_upgrades()` in `forward_ws_req_to_server` to mirror the server side and the equivalent agent-host proxy. Fixes https://github.com/microsoft/vscode/issues/315448 (Commit message generated by Copilot)