Skip to content

api: add User-Agent header

Erik Seliger requested to merge aharvey/user-agent into main

Created by: LawnGnome

This PR unconditionally changes the User-Agent to src-cli, rather than the default Go user-agent, and adds the OS and architecture to src for support and product purposes by default. This can be disabled via an environment variable and/or flag, and is documented accordingly.

Closes sourcegraph/sourcegraph#15769.

Merge request reports

Loading