fix bug of handshake with nginx, simple hs