Skip to content

Set a distinct user agent header on Registry HTTP client #2010

@bbasata

Description

@bbasata

Language Server Version

v0.36.5

Problem Statement

I've observed that terraform-ls HTTP requests to Terraform Registry have a user agent header of Go-http-client/2.0.

I recommend that terraform-ls requests set a distinct user agent header for each release, such as terraform-ls/{semver}. This will help operators of upstream HTTP servers to identify traffic that originates from terraform-ls.

Attempted Solutions

No response

Proposal

No response

Related LSP methods

  • textDocument/completion

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions