Skip to content

Commit c6004e7

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gitlab/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ 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 = {
98+
"User-Agent": "%s/%s" % (__title__, __version__)
99+
}
98100

99101
#: Whether SSL certificates should be validated
100102
self.ssl_verify = ssl_verify

0 commit comments

Comments
 (0)