diff --git a/astrodata/testing.py b/astrodata/testing.py index 57eb56b2..1d8fca2d 100644 --- a/astrodata/testing.py +++ b/astrodata/testing.py @@ -667,7 +667,9 @@ def download_from_archive( digest = hashlib.file_digest(filep, "md5") file_md5 = digest.hexdigest() # Get the md5 from GOA - fileinfourl = url.replace("/file/", "/jsonfilelist/present/") + fileinfourl = url.replace( + "/file/", "/jsonfilelist/present/filename=" + ) fileinfo = requests.get( fileinfourl, headers={"User-Agent": "astropy"} ).json()