eclipse/vert.x — pull request #976 by untoldwind (2014-12-01 12:41:01+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).