File tree 2 files changed +3
-4
lines changed
enterprise/coderd/proxyhealth 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -797,10 +797,10 @@ func New(options *Options) *API {
797
797
// browsers, so these don't make sense on api routes.
798
798
cspMW := httpmw .CSPHeaders (func () []string {
799
799
if f := api .HealthyWorkspaceProxyHosts .Load (); f != nil {
800
- // By default we do not add extra websocket connections to the CSP
801
- return []string {}
800
+ return (* f )()
802
801
}
803
- return nil
802
+ // By default we do not add extra websocket connections to the CSP
803
+ return []string {}
804
804
})
805
805
r .NotFound (cspMW (compressHandler (http .HandlerFunc (api .siteHandler .ServeHTTP ))).ServeHTTP )
806
806
return api
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ func (p *ProxyHealth) storeProxyHealth(statuses map[uuid.UUID]ProxyStatus) {
150
150
}
151
151
}
152
152
153
- fmt .Println ("healthyHosts" , healthyHosts )
154
153
// Store the statuses in the cache before any other quick values.
155
154
p .cache .Store (& statuses )
156
155
p .heathyHosts .Store (& healthyHosts )
You can’t perform that action at this time.
0 commit comments