From 26f1d6125b71a03ff635b4e603d51bcdfff589ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 10 Nov 2022 12:45:31 +0200 Subject: [PATCH] Fix proxied urls not unproxifying (regression 1116b05f) Technically this code has been wrong for a long time, but it only manifest now. It seems that the equivalent code in translate module was fixed when that code was extracted into a separate repo --- chrome/content/zotero/xpcom/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/proxy.js b/chrome/content/zotero/xpcom/proxy.js index 6ceb37ef9a..4a4016ebd6 100644 --- a/chrome/content/zotero/xpcom/proxy.js +++ b/chrome/content/zotero/xpcom/proxy.js @@ -458,7 +458,7 @@ Zotero.Proxy.prototype.toProper = function(m) { m = match; } } - let protocol = this.scheme.indexOf('https') == -1 ? 'http://' : 'https://'; + let protocol = m[0].indexOf('https') == -1 ? 'http://' : 'https://'; if(this.multiHost) { var properURL = protocol+m[this.parameters.indexOf("%h")+1]+"/"; } else {