From 39f604735bc099034316a1afba8530609e02236a Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Tue, 11 Oct 2016 05:01:49 +0900 Subject: [PATCH] URL build fix --- src/handlers/xdgurl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index 646ef59..36904e2 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -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; -- GitLab