VGA console: agree to spice-html5's binary subprotocol; label layout and two labels in the detail pane

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Mitchell-Johnson
2026-10-09 22:28:00 -07:00
co-authored by Claude Fable 5.1
parent 43ebacdd92
commit a5ebfdc9ce
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -527,7 +527,8 @@ func (s *Server) virtVGA(w http.ResponseWriter, r *http.Request) {
jsonErr(w, 400, "bad name")
return
}
conn, err := websocket.Accept(w, r, &websocket.AcceptOptions{CompressionMode: websocket.CompressionDisabled})
// spice-html5 asks for the "binary" subprotocol and gives up unless the server agrees to it
conn, err := websocket.Accept(w, r, &websocket.AcceptOptions{CompressionMode: websocket.CompressionDisabled, Subprotocols: []string{"binary"}})
if err != nil {
return
}