Skip to content

Commit c22d49d

Browse files
committed
feat: send python-gitlab version as user-agent
1 parent dad6805 commit c22d49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(
9494
#: Timeout to use for requests to gitlab server
9595
self.timeout = timeout
9696
#: Headers that will be used in request to GitLab
97-
self.headers = {}
97+
self.headers = {"User-Agent": "%s/%s" % (__title__, __version__)}
9898

9999
#: Whether SSL certificates should be validated
100100
self.ssl_verify = ssl_verify

0 commit comments

Comments
 (0)