diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2020-10-14 16:56:49 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2020-10-14 17:12:43 +0200 |
commit | 3f03127314bd768efd0bef57915320545afcdd78 (patch) | |
tree | 6bf635e8343edfed9d847726db27259dcb5f0a96 /client/httpsclient_test.go | |
parent | d5fdca30a0e5e7bec6f229aaff966a92ba369331 (diff) | |
download | gitlab-shell-zj-override-user-agent.tar.gz |
client: Allow User-Agent header to be overriddenzj-override-user-agent
The user agent for requests to the internal API endpoints used the
default Go provided user agent. This change updates that to always set
something else, by default `GitLab-Shell`.
Than for others importing the package, there's a new API to set it to
something else. This has been done with new method, a setter, to
maintain backwards compatibility in the API.
Diffstat (limited to 'client/httpsclient_test.go')
0 files changed, 0 insertions, 0 deletions