diff options
author | Victor Häggqvist <[email protected]> | 2015-10-15 14:10:45 +0200 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2015-10-15 14:10:45 +0200 |
commit | 27da4bcb93bd23f070510aa59248d76ecf6a5761 (patch) | |
tree | 71d43571da907599c2b958a6e78b453c5ddacd38 | |
parent | ebbd8b3525adf5fef72cfbbf0bfa30beceec1cfc (diff) |
send up-to-date user agent
Diffstat (limited to '')
-rwxr-xr-x | giti | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ def search_for_file(kind: str) -> str: Search for file in https://github.com/github/gitignore """ headers = { - 'User-Agent': 'giti.py/0.0.1', + 'User-Agent': 'giti.py/'+__version__, 'Accept': 'application/vnd.github.v3+json' } r = requests.get('https://api.github.com/search/code?q=repo:github/gitignore %s' % kind, headers=headers) |