8000 feat: send python-gitlab version as user-agent · python-gitlab/python-gitlab@c22d49d · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/sessions-eed3aa0554dd.js" defer="defer">

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

Lines changed: 1 addition & 1 deletion
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)
0