aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2015-10-15 14:10:45 +0200
committerVictor Häggqvist <[email protected]>2015-10-15 14:10:45 +0200
commit27da4bcb93bd23f070510aa59248d76ecf6a5761 (patch)
tree71d43571da907599c2b958a6e78b453c5ddacd38
parentebbd8b3525adf5fef72cfbbf0bfa30beceec1cfc (diff)
send up-to-date user agent
-rwxr-xr-xgiti2
1 files changed, 1 insertions, 1 deletions
diff --git a/giti b/giti
index 0502902..6249e57 100755
--- a/giti
+++ b/giti
@@ -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)