Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gentleman/proxy error in example and code #62

Open
eGGshke opened this issue Nov 10, 2021 · 0 comments
Open

gentleman/proxy error in example and code #62

eGGshke opened this issue Nov 10, 2021 · 0 comments

Comments

@eGGshke
Copy link

eGGshke commented Nov 10, 2021

cli.Use(proxy.Set([]string{"http://proxy:3128", "http://proxy2:3128"}))
This is from example but in code proxy.Set accept map[string]string with parameters by url schema, and same proxy.
It's all nothing - but there is one nuance, map take a schema by request schema. It's not good, but you can adapt.
But map can only contain unique keys. So we can use only 1 proxy per 1 scheme. This is not good.

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

No branches or pull requests

1 participant