Fix bug in _set_proxy_headers that ignores the port when setting the 'Host' HTTP header when a proxy is used.