Skip to content

Commit 711b061

Browse files
committed
Fix context
1 parent 1a98647 commit 711b061

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

enterprise/coderd/workspaceagents.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package coderd
22

33
import (
4+
"context"
45
"net/http"
56

67
"github.com/coder/coder/coderd/httpapi"
@@ -12,7 +13,7 @@ func (api *API) shouldBlockNonBrowserConnections(rw http.ResponseWriter) bool {
1213
browserOnly := api.entitlements.browserOnly
1314
api.entitlementsMu.Unlock()
1415
if api.BrowserOnly && browserOnly != codersdk.EntitlementNotEntitled {
15-
httpapi.Write(rw, http.StatusConflict, codersdk.Response{
16+
httpapi.Write(context.Background(), rw, http.StatusConflict, codersdk.Response{
1617
Message: "Non-browser connections are disabled for your deployment.",
1718
})
1819
return true

0 commit comments

Comments
 (0)