Skip to content
Snippets Groups Projects
Commit 39f60473 authored by akiraohgaki's avatar akiraohgaki
Browse files

URL build fix

parent 22520be8
Branches
Tags
No related merge requests found
......@@ -177,8 +177,7 @@ void XdgUrl::_downloaded(QNetworkReply *reply)
if (reply->hasRawHeader("Refresh")) {
QString refreshUrl = QString(reply->rawHeader("Refresh")).split("url=").last();
if (refreshUrl.startsWith("/")) {
QUrl url = reply->url();
refreshUrl = url.scheme() + "://" + url.host() + refreshUrl;
refreshUrl = reply->url().authority() + refreshUrl;
}
_asyncNetwork->get(QUrl(refreshUrl));
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment