Unable to use proxy with port 80 or 443 with Playwright
The string :None is being appended to Playwright Proxy configurations when port 80 or 443 is used.
Proxy URL: http://foo:bar@p.webshare.io:80/
proxy_info: {'server': 'http://p.webshare.io:None', 'username': 'foo', 'password': 'bar'}
httpx.URL.portcannot be set to 80 (for HTTP) or 443 (HTTPS), see example below
In [1]: from httpx import URL
In [2]: url = URL(scheme="http", host="example.com", port=8080)
In [3]: url.port
Out[3]: 8080
In [4]: url = URL(scheme="http", host="example.com", port=80)
In [5]: url.port
In [6]: url = URL(scheme="http", host="example.com", port=443)
In [7]: url.port
Out[7]: 443
In [8]: url = URL(scheme="https", host="example.com", port=443)
In [9]: url.port