Revert "Fix to work behind a http proxy."

This reverts commit 0857258.  A better implementation of this
functionality is provided by @RuiPereira in 3735b2e.