Checklist
Describe the bug
I set a proxy globally on 127.0.0.1:10909 but except for localhost/127.0.0.1(Windows Setting->Network->Proxy ), then I found httpx.get('http://127.0.0.1:8000') will use the proxy(unexpected), but chrome and requests.get('http://127.0.0.1:8000') accessed it directly(expected).
To reproduce
- Set a proxy globally but except for
localhost\127.0.0.1,
- Exec
httpx.get('http://127.0.0.1:8000') .
Expected behavior
httpx.get accesses http://127.0.0.1:8000 without proxy.
Actual behavior
httpx.get accesses http://127.0.0.1:8000 with proxy.
Debugging material
Environment
- OS: Windows 10
- Python version: 3.7.6
- HTTPX version: 0.17.0
- Async environment: no
- HTTP proxy: no
- Custom certificates: no
Additional context
Checklist
master.Describe the bug
I set a proxy globally on
127.0.0.1:10909but except forlocalhost/127.0.0.1(Windows Setting->Network->Proxy ), then I foundhttpx.get('http://127.0.0.1:8000')will use the proxy(unexpected), but chrome andrequests.get('http://127.0.0.1:8000')accessed it directly(expected).To reproduce
localhost\127.0.0.1,httpx.get('http://127.0.0.1:8000').Expected behavior
httpx.getaccesseshttp://127.0.0.1:8000without proxy.Actual behavior
httpx.getaccesseshttp://127.0.0.1:8000with proxy.Debugging material
Environment
Additional context