-
Notifications
You must be signed in to change notification settings - Fork 842
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
Specify User-Agent to get over my company's firewall #3628
Comments
Sure, this would be an appreciated PR! There are a fair number of places that do downloads. Searching for |
Now I'm trying to decide which functions to wrap. |
@igrep You might need to make some changes to hackage-security itself, I'm not sure if it sets user-agent. |
Fix: commercialhaskell#3628 Wrap up functions in `Network.HTTP.Client` and `Network.HTTP.Simple` to add User-Agent to the request object.
Fix: commercialhaskell#3628 Wrap up functions in `Network.HTTP.Client` and `Network.HTTP.Simple` to add User-Agent to the request object.
Specify User-Agent on every HTTP request (#3628)
Add hlint rules to prevent regression of #3628
Problem
My colleagues and I are using stack behind a (weirdly) strong firewall, which denies http requests whose User-Agent header and the destination URL match with the preset white list, since the recent change by the infra team.
So I asked the infra team to add stack and s3.amazonaws.com (and so on) to the white list, but he declined because stack accesses to various domains without any User-Agent header!!
Solution
If you don't have a problem, I'll make a PR to add some User-Agent header ("The Haskell Stack" looks good.
So can you tell me where I should fix?
Version of stack I'm using
The text was updated successfully, but these errors were encountered: