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

Fix(workaround really) the bogus addition of user-agent: #16

Merged
merged 1 commit into from Nov 7, 2022
Merged

Conversation

ldemailly
Copy link
Member

by go client lib when none is set in a proxy context

fixes #15

before:

make dev # in proxy
go run . curl -loglevel debug -H user-agent: -H foo:bar localhost:8001/debug  # in Fortio with Fortio server running
[...]
User-Agent: Go-http-client/1.1
X-Forwarded-For: 127.0.0.1

after

go run . curl -loglevel debug -H user-agent: -H foo:bar localhost:8001/debug 
[...]
headers:

Host: localhost:8001
Accept-Encoding: gzip
Foo: bar
X-Forwarded-For: 127.0.0.1

@ldemailly ldemailly merged commit 1d9bf98 into main Nov 7, 2022
@ldemailly ldemailly deleted the fix_ua branch November 7, 2022 04:02
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.

proxy adds the golang client User-Agent if there isn't one already
2 participants