From 27da4bcb93bd23f070510aa59248d76ecf6a5761 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Thu, 15 Oct 2015 14:10:45 +0200 Subject: send up-to-date user agent --- giti | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3