Skip to content

Commit 22e6b2b

Browse files
committed
Added astroquery user-agent to TapPlus module
1 parent c31041e commit 22e6b2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astroquery/utils/tap/conn/tapconn.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import httplib
2424
import mimetypes
2525
import time
26+
from astroquery import version
2627

2728
from six.moves.urllib.parse import urlencode
2829

@@ -124,7 +125,8 @@ def __interna_init(self):
124125
self.__tapContext = None
125126
self.__postHeaders = {
126127
"Content-type": CONTENT_TYPE_POST_DEFAULT,
127-
"Accept": "text/plain"
128+
"Accept": "text/plain",
129+
"User-Agent": 'astropy:astroquery.{vers}'.format(vers=version.version)
128130
}
129131
self.__getHeaders = {}
130132
self.__cookie = None

0 commit comments

Comments
 (0)