Commit 21681a1e authored by Volker Krause's avatar Volker Krause
Browse files

Deal with URLs with trailing slashes correctly

parent 9b2957ba
......@@ -631,7 +631,11 @@ void Provider::submit()
d->networkAccessManager = new QNetworkAccessManager(this);
auto url = d->serverUrl;
url.setPath(url.path() + QStringLiteral("/receiver/submit/") + d->productId);
auto path = d->serverUrl.path();
if (!path.endsWith(QLatin1Char('/')))
path += QLatin1Char('/');
path += QStringLiteral("receiver/submit/") + d->productId;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment