Skip to content

Commit

Permalink
Don't add a trailing slash any time that sles_auth_token is present
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed Jun 11, 2021
1 parent 8456d01 commit 82e9ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/8816.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a trailing slash sometimes being inserted improperly if sles_auth_token is used.
2 changes: 1 addition & 1 deletion pulp_rpm/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def _run(self, extra_data=None):
"""
if self.sles_auth_token:
auth_param = f"?{self.sles_auth_token}"
url = urlpath_sanitize(self.url, auth_param)
url = urlpath_sanitize(self.url) + auth_param
else:
url = self.url

Expand Down

0 comments on commit 82e9ac4

Please sign in to comment.