Fix HttpEndpoint problems with config method

Change-Id: Ie71d39fa1be54bb3763c8ba07cbece948a56bf2c