diff options
author | Roger Meier <r.meier@siemens.com> | 2019-10-24 17:27:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 17:27:31 +0200 |
commit | 8cb5488142ca7fc7563fac65b434b672a14369fc (patch) | |
tree | eeb36f4143ade19c4003840215c81e3d165a4fd8 | |
parent | dad68050c1269519f35dcdb29dc94a03f47532c5 (diff) | |
parent | c22d49d084d1e03426cfab0d394330f8ab4bd85a (diff) | |
download | gitlab-8cb5488142ca7fc7563fac65b434b672a14369fc.tar.gz |
Merge pull request #921 from python-gitlab/feat/python-gitlab-agent
feat: send python-gitlab version as user-agent
-rw-r--r-- | gitlab/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index c73e697..08fbb4a 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -94,7 +94,7 @@ class Gitlab(object): #: Timeout to use for requests to gitlab server self.timeout = timeout #: Headers that will be used in request to GitLab - self.headers = {} + self.headers = {"User-Agent": "%s/%s" % (__title__, __version__)} #: Whether SSL certificates should be validated self.ssl_verify = ssl_verify |