Skip to content

Removed default useragent header in ParseUrl http.GET#4

Open
coolcoolnoworries wants to merge 2 commits intojackwakefield:masterfrom
coolcoolnoworries:master
Open

Removed default useragent header in ParseUrl http.GET#4
coolcoolnoworries wants to merge 2 commits intojackwakefield:masterfrom
coolcoolnoworries:master

Conversation

@coolcoolnoworries
Copy link
Copy Markdown

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