We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615fc10 commit 455ec9bCopy full SHA for 455ec9b
astroquery/query.py
@@ -97,6 +97,11 @@ class BaseQuery(object):
97
98
def __init__(self):
99
self._session = requests.session()
100
+ self._session.headers['User-Agent'] = ('astropy:astroquery.{vers} '
101
+ '{olduseragent}'
102
+ .format(vers=version.version,
103
+ olduseragent=
104
+ self._session.headers['User-Agent']))
105
self.cache_location = os.path.join(paths.get_cache_dir(), 'astroquery',
106
self.__class__.__name__.split("Class")[0])
107
if not os.path.exists(self.cache_location):
0 commit comments