Fixes to http client.