Skip to content

Commit

Permalink
plugins: metadata_importer: append rather that replace path in requests
Browse files Browse the repository at this point in the history
This avoids problems when the api is hosted under a base path,
which would otherwise always be stripped.
  • Loading branch information
mnamici committed Jun 7, 2024
1 parent a8e19f3 commit b69070a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def onRepositoryChanged(self, index):
if repo:
self.settings.setValue('metadata/index', self.combobox.currentIndex())
url = QtCore.QUrl(repo.uri)
url.setPath('/classes')
url.setPath(f'{url.path()}/classes')
request = QtNetwork.QNetworkRequest(url)
request.setAttribute(MetadataRequest.RepositoryAttribute, repo)
reply = self.session.nmanager.get(request)
Expand Down

0 comments on commit b69070a

Please sign in to comment.