Skip to content

Commit b4b1252

Browse files
committed
Added User-Agent to TapPlus module
1 parent a5cea1d commit b4b1252

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
@@ -28,6 +28,7 @@
2828

2929
from astroquery.utils.tap.xmlparser import utils
3030
from astroquery.utils.tap import taputils
31+
from astroquery import version
3132

3233
import requests
3334

@@ -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": "astroquery/{vers}".format(vers=version.version),
128130
}
129131
self.__getHeaders = {}
130132
self.__cookie = None

0 commit comments

Comments
 (0)