add version information to user agent string

pull/9/head
Jeremy Carbaugh 2012-11-02 17:27:28 -04:00
rodzic 9ec76c807a
commit f50a662dd5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -59,7 +59,7 @@ class WebFingerClient(object):
self._official = official
self._session = requests.session(
timeout=timeout,
headers={'User-Agent': 'python-webfinger'})
headers={'User-Agent': 'python-webfinger/%s' % __version__})
def rd(self, url, raw=False):
""" Load resource at given URL and attempt to parse either XRD or JRD