Skip to content

Commit 11efebb

Browse files
committed
Fixes request redirect bug
1 parent c98c9ff commit 11efebb

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)