Visitar URL original
Ignore http_proxy for managed drivers by kallisti-dev · Pull Request #219 · haskell-webdriver/haskell-webdriver · GitHub
Skip to content

Ignore http_proxy for managed drivers - #219

Open
kallisti-dev wants to merge 1 commit into
mainfrom
skip-proxy-for-launched-drivers
Open

kallisti-dev wants to merge 1 commit into
mainfrom
skip-proxy-for-launched-drivers

Conversation

@kallisti-dev

Copy link
Copy Markdown
Member

http-client's defaultManagerSettings sends every request through the proxy named by http_proxy unless no_proxy matches the host. launchDriver only talks to a driver it started on localhost, so with http_proxy set every request went to the proxy and no session could start.

Drivers the library launches now get a manager with managerSetProxy noProxy. mkManualDriver keeps the default, since a driver at a user-supplied host and port may sit behind the proxy.

A manager built from http-client's defaultManagerSettings sends every
request through the proxy named by the http_proxy environment variable
unless no_proxy matches the request's host. launchDriver only ever
talks to a driver it started on localhost, and no_proxy rarely lists
localhost, so with http_proxy set every request went to the proxy and
no session could start.

mkManualDriver keeps the default on purpose: a driver at a
user-supplied host and port may legitimately sit behind the proxy.
@kallisti-dev
kallisti-dev requested a review from thomasjm November 2, 2026 05:51
@thomasjm

thomasjm commented Nov 2, 2026

Copy link
Copy Markdown
Member

Hmm, if the user has set an http_proxy and declined to exclude the local host, shouldn't we let them do it? Respecting http_proxy is generally a good thing to do. It seems surprising to interfere with the apparent user intent here by preventing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants