Skip to content

Commit 2b5b4bc

Browse files
committed
handle endpoints with or without trailing slash (SOFTWARE-4751)
1 parent d24598f commit 2b5b4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osg-comanage-project-usermap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def mkauthstr(user, passwd):
7171

7272

7373
def mkrequest(target, **kw):
74-
url = options.endpoint + target
74+
url = os.path.join(options.endpoint, target)
7575
if kw:
7676
url += "?" + "&".join( "{}={}".format(k,v) for k,v in kw.items() )
7777
req = urllib.request.Request(url)

0 commit comments

Comments
 (0)