High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix(screencast): implement Hijacker on statusRecorder to allow WebSocket upgrades
SoliditySam7b720183cb45
diff --git a/cmd/pinchtab/cmd_bridge.go b/cmd/pinchtab/cmd_bridge.goindex af49932f..69a15a11 100644--- a/cmd/pinchtab/cmd_bridge.go+++ b/cmd/pinchtab/cmd_bridge.go@@ -1,9 +1,11 @@package mainimport (+ "bufio""context""fmt""log/slog"+ "net""net/http""os""os/signal"@@ -121,3 +123,11 @@ func (r *statusRecorder) WriteHeader(code int) {r.statusCode = coder.ResponseWriter.WriteHeader(code)}++func (r *statusRecorder) Hijack() (net.Conn, *bufio.ReadWriter, error) {+ h, ok := r.ResponseWriter.(http.Hijacker)+ if !ok {+ return nil, nil, fmt.Errorf("given http.ResponseWriter is not a http.Hijacker")+ }+ return h.Hijack()+}