response a empty line after headers to  support for tunneld behind a nginx proxy
add http proxy support for client end