Fix the logic for using an HTTP proxy without a tunnel