• Leonard Hecker's avatar
    Fixed #1292: Failure to proxy WebSockets over HTTPS · 9f9ad21a
    Leonard Hecker authored
    This issue was caused by connHijackerTransport trying to record HTTP
    response headers by "hijacking" the Read() method of the plain net.Conn.
    This does not simply work over TLS though since this will record the TLS
    handshake and encrypted data instead of the actual content.
    This commit fixes the problem by providing an alternative transport.DialTLS
    which correctly hijacks the overlying tls.Conn instead.
    9f9ad21a
reverseproxy.go 14.4 KB