Skip to content

Commit eec8c55

Browse files
authored
Use urljoin to prevent issue with trailing slash in SMP URL (#17)
1 parent e0bba5b commit eec8c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peppol_py/smp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_smp_url_from_dns(participant_id, test_environment):
4747

4848
# SMP: domain + path -> xml with service descriptions
4949
# get all available interfaces (invoice, credit note etc.)
50-
return result + "/iso6523-actorid-upis::" + participant_id
50+
return urllib.parse.urljoin(result, "./iso6523-actorid-upis::" + participant_id)
5151

5252

5353
def get_service_urls_for_participant_from_smp(participant_id, test_environment, timeout):

0 commit comments

Comments
 (0)