Skip to content

aiohttp not honoring no_proxy #4431

Closed
Closed
@scirelli

Description

Long story short

aiohttp not honoring no_proxy environment variable when trust_env is set.

Expected behaviour

When there is a no_proxy NO_PROXY environment variable set, URLs listed in that variable should not use http{s}_proxy

Actual behaviour

When trust_env is set and there are http_proxy and no_proxy set, the proxy is always used.

Steps to reproduce

Set http{s}_proxy and no_proxy, make a request to a domain listed in no_proxy. The request will still go through the proxy.

Your environment

Linux
aiohttp 3.6.2
Company proxy server

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions