Skip to content

Commit 8658bbb

Browse files
SalimKayalleafty
andcommitted
fix: remove case for SessionPort set to 0, fix comment
Co-authored-by: Flora Thiebaut <flora@leafty.dev>
1 parent a107f62 commit 8658bbb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internal/remote/server/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ func newServer(controller controller.RemoteSessionController, cfg config.RemoteS
131131
}
132132
return c.NoContent(http.StatusOK)
133133
case string(amaltheadevv1alpha1.HTTP):
134-
if cfg.SessionPort == 0 {
135-
return c.NoContent(http.StatusOK)
136-
}
137134
client := &http.Client{
138135
Timeout: 5 * time.Second,
139136
CheckRedirect: func(req *http.Request, via []*http.Request) error {
@@ -159,7 +156,7 @@ func newServer(controller controller.RemoteSessionController, cfg config.RemoteS
159156
}
160157
return c.NoContent(http.StatusServiceUnavailable)
161158
default:
162-
// Unconfigured / unknown: preserve old behavior for backward compatibility
159+
// Case None or unset: preserve old behavior for backward compatibility
163160
return c.NoContent(http.StatusOK)
164161
}
165162
})

0 commit comments

Comments
 (0)