Skip to content

Commit ed8070c

Browse files
committed
Update accept headers for session info
1 parent f22f401 commit ed8070c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroquery/mast/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@ def _session_info(self, silent=False): # pragma: no cover
705705
"""
706706

707707
# get user information
708-
response = self._session.request("GET", self._SESSION_INFO_URL, headers={"Accept": "application/json"})
708+
self._session.headers["Accept"] = "application/json"
709+
response = self._session.request("GET", self._SESSION_INFO_URL)
709710

710711
infoDict = json.loads(response.text)
711712

0 commit comments

Comments
 (0)