In a typical MitM over CONNECT scenario there is possibility to override request schema from secure to insecure. Example: when using TLS MitM we can redirect https service to a local http server by request URL manipulation using OnRequest handler.
But when there is a try to open websocket connection, there is an error - always secure TLS connection is enforced regardless to request URL schema.
Fix in #505
In a typical MitM over CONNECT scenario there is possibility to override request schema from secure to insecure. Example: when using TLS MitM we can redirect https service to a local http server by request URL manipulation using OnRequest handler. But when there is a try to open websocket connection, there is an error - always secure TLS connection is enforced regardless to request URL schema. Fix in #505