fixed httpcomponents deprecation warning