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

tailscale: use a custom User-Agent header while making API requests #270

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

knyar
Copy link
Collaborator

@knyar knyar commented Aug 17, 2023

This passes a custom user-agent header value to the API client for making HTTP requests.

It uses an existing UserAgent helper provided by the plugin SDK: https://github.com/hashicorp/terraform-plugin-sdk/blob/8bde488a9529d281bc6858ca2b0a3708c2f93658/helper/schema/provider.go#L489

@knyar knyar force-pushed the knyar/useragent branch 2 times, most recently from a02b235 to 685f729 Compare August 17, 2023 19:15
This passes a custom user-agent header value to the API client for
making HTTP requests.

It uses an existing UserAgent helper provided by the plugin SDK:
https://github.com/hashicorp/terraform-plugin-sdk/blob/8bde488a9529d281bc6858ca2b0a3708c2f93658/helper/schema/provider.go#L489

Signed-off-by: Anton Tolchanov <[email protected]>
@knyar knyar merged commit e2961ac into main Aug 17, 2023
3 checks passed
@knyar knyar deleted the knyar/useragent branch August 17, 2023 19:57
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.

2 participants