Fix HTTP connectivity issue to an endpoint other than the default one