Fixes deprecation warnings from Ruby 2.3. Resolves #20950 (closed).
Changelog: https://github.com/nahi/httpclient/blob/b51d7a8bb78f71726b08fbda5abfb900d627569f/CHANGELOG.md#changes-in-282
cc: @stanhu