summaryrefslogtreecommitdiff
path: root/client/httpclient.go
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2020-10-14 16:56:49 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2020-10-14 17:12:43 +0200
commit3f03127314bd768efd0bef57915320545afcdd78 (patch)
tree6bf635e8343edfed9d847726db27259dcb5f0a96 /client/httpclient.go
parentd5fdca30a0e5e7bec6f229aaff966a92ba369331 (diff)
downloadgitlab-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/httpclient.go')
0 files changed, 0 insertions, 0 deletions