Added support for custom HTTP headers during handshake.