By default, a connection:close header is set for api requests, this was ...

...there to solve an android webview related issue.

This cl allow setting this header from client. and by default connection:keep-alive is set