From 5c6b7157204d5bc7c0a43b178471865f38cd06f4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 22 Sep 2015 18:52:44 +0200 Subject: [PATCH] Use QUrl.resolved instead of urlparse.urljoin --- qutebrowser/misc/mhtml.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/misc/mhtml.py b/qutebrowser/misc/mhtml.py index b45f0f6a9..9c8e66662 100644 --- a/qutebrowser/misc/mhtml.py +++ b/qutebrowser/misc/mhtml.py @@ -227,11 +227,11 @@ class _Downloader(object): The object must not be reused, you should create a new one if you want to download another page. """ - web_url_str = self.web_view.url().toString() + web_url = self.web_view.url() web_frame = self.web_view.page().mainFrame() self.writer.root_content = web_frame.toHtml().encode("utf-8") - self.writer.content_location = web_url_str + self.writer.content_location = web_url.toString() # I've found no way of getting the content type of a QWebView, but # since we're using .toHtml, it's probably safe to say that the # content-type is HTML @@ -249,7 +249,7 @@ class _Downloader(object): if not element_url: # Might be a local