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

Removed default useragent header in ParseUrl http.GET #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coolcoolnoworries
Copy link

ParseUrl uses http.get to pull the PAC, without defining headers. This sends a default "Go-http-client/1.1" header along with every request. The user agent header is unnecessary and in some cases creates logging issues. Add code to use client object instead and explicitly set user agent header to empty so that it does not get sent with every PAC request.

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.

1 participant