Skip to content

Commit a2defa6

Browse files
authored
Merge pull request #300 from MIT-LCP/request_bug
Fixes request redirect bug
2 parents c98c9ff + 11efebb commit a2defa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ def get_version(pn_dir):
12421242
12431243
"""
12441244
db_dir = pn_dir.split('/')[0]
1245-
url = posixpath.join(download.PN_CONTENT_URL, db_dir)
1245+
url = posixpath.join(download.PN_CONTENT_URL, db_dir) + '/'
12461246
response = requests.get(url)
12471247
contents = [line.decode('utf-8').strip() for line in response.content.splitlines()]
12481248
version_number = [v for v in contents if 'Version:' in v]

0 commit comments

Comments
 (0)