eclipse/vert.x — pull request #978 by untoldwind (2014-12-02 11:45:16+00:00)
Title: Fix sendHead() in http client request

If the underlying connection is already establish (e.g. by a previous GET request with keep alive), the connected() callback is invoked in the very same thread as sendHead(). Since the writeHead flag is set after the connect the HTTP header is actually never written.
ATM the only workaround is to call sendHead() twice (which is very ugly).