Skip to content

Support proxy environment variables in HTTP client#648

Closed
HeathNaylor wants to merge 1 commit intolaravel:mainfrom
HeathNaylor:fix/proxy-env-support
Closed

Support proxy environment variables in HTTP client#648
HeathNaylor wants to merge 1 commit intolaravel:mainfrom
HeathNaylor:fix/proxy-env-support

Conversation

@HeathNaylor
Copy link
Contributor

Reads HTTP_PROXY, HTTPS_PROXY, and NO_PROXY env vars (and lowercase variants) and passes them to Guzzle via withOptions(['proxy' => ...]) allowing the search-docs tool to work in proxied environments. There is no behavior change when proxy env vars are not set.

I covered this change in tests as well as manually tested with a Squid proxy container routing requests to boost.laravel.com/api/docs.

Fixes #599

Reads HTTP_PROXY, HTTPS_PROXY, and NO_PROXY (and lowercase variants) and
passes them to Guzzle so the search-docs tool works in proxied environments.

Fixes laravel#599
@pushpak1300
Copy link
Member

Thanks closing in favour of #599 (comment)

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.

search-docs tool fails on proxied environment

2 participants