patch to support CONNECT method