mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
fix: code-server path based forwarding, defer to code-server (#11759)
Do not attempt to construct a path based port forward url. Always defer to code server, as it has it's own proxy method.
This commit is contained in:
@ -35,19 +35,18 @@ func Test_vscodeProxyURI(t *testing.T) {
|
||||
Expected string
|
||||
}{
|
||||
{
|
||||
// No hostname proxies through the access url.
|
||||
Name: "NoHostname",
|
||||
AccessURL: coderAccessURL,
|
||||
AppHostname: "",
|
||||
App: basicApp,
|
||||
Expected: coderAccessURL.String(),
|
||||
Expected: "",
|
||||
},
|
||||
{
|
||||
Name: "NoHostnameAccessURLPort",
|
||||
AccessURL: accessURLWithPort,
|
||||
AppHostname: "",
|
||||
App: basicApp,
|
||||
Expected: accessURLWithPort.String(),
|
||||
Expected: "",
|
||||
},
|
||||
{
|
||||
Name: "Hostname",
|
||||
|
Reference in New Issue
Block a user