-
Notifications
You must be signed in to change notification settings - Fork 471
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
Set a custom user agent string for http checks #882
Comments
Make sense, marked as approved. Feel free to submit a PR if you're interested in the change otherwise, I'll eventually get around to it. |
I'm going to take a shot at this if no one else is already working on it. |
@fbartels just FYI you can override this on a per check basis. http:
https://www.google.com:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 1000
username: ""
password: ""
ca-file: ""
cert-file: ""
key-file: ""
proxy: ""
skip: false
method: GET
request-headers:
- 'user-agent: whatever/you/want/goes/here' |
@catdevman thanks or the hint regarding request-headers. I did miss that setting custom headers is already possible in http checks. I can confirm that this works as a workaround until goss sets a proper user-agent. |
Describe the feature:
"Go-http-client/1.1"
will be sent to the server as the user agentDescribe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: