Fix a timing issue when enableProtocol is set to true and POST is send without the handshaking protocol