Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(healthcheck): add websocket report
  • Loading branch information
coadler committed May 30, 2023
commit 0ed839b5027f2c6783ffca61080513ca5b3cf60b
2 changes: 1 addition & 1 deletion coderd/healthcheck/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (WebsocketEchoServer) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
ctx := r.Context()
c, err := websocket.Accept(rw, r, &websocket.AcceptOptions{})
if err != nil {
httpapi.Write(ctx, rw, http.StatusBadRequest, "Invalid websocket.")
httpapi.Write(ctx, rw, http.StatusBadRequest, "unable to accept: "+err.Error())
return
}
defer c.Close(websocket.StatusGoingAway, "goodbye")
Expand Down