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
This commit is contained in:
parent
6fc5b037d9
commit
e3d13826c8
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ Zotero.Proxy.prototype.toProper = function(m) {
|
||||||
m = match;
|
m = match;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let protocol = this.scheme.indexOf('https') == -1 ? 'http://' : 'https://';
|
let protocol = m[0].indexOf('https') == -1 ? 'http://' : 'https://';
|
||||||
if(this.multiHost) {
|
if(this.multiHost) {
|
||||||
var properURL = protocol+m[this.parameters.indexOf("%h")+1]+"/";
|
var properURL = protocol+m[this.parameters.indexOf("%h")+1]+"/";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue