Added astroquery user-agent to TapPlus module
@@ -23,6 +23,7 @@ except ImportError:
import httplib
import mimetypes
import time
+from astroquery import version
from six.moves.urllib.parse import urlencode
@@ -124,7 +125,8 @@ class TapConn:
self.__tapContext = None
self.__postHeaders = {
"Content-type": CONTENT_TYPE_POST_DEFAULT,
- "Accept": "text/plain"
+ "Accept": "text/plain",
+ "User-Agent": 'astropy:astroquery.{vers}'.format(vers=version.version)
}
self.__getHeaders = {}
self.__cookie = None
