From ba2cb6020bd6e7663e519f89130bdf73099173a2 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 21 Aug 2014 16:47:45 +0100 Subject: [PATCH] Support sp_auth_query --- src/mkws-core.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index e40805e..ce06367 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -171,6 +171,7 @@ mkws.setMkwsConfig = function(overrides) { // Was: //mkws.indexdata.com/service-proxy-auth pp2_hostname: "mkws.indexdata.com", sp_path: "service-proxy-auth", + sp_auth_query: undefined, // Will be: "command=auth&action=perconfig", credentials: undefined, lang: "", sort_options: [["relevance"], ["title:1", "title"], ["date:0", "newest"], ["date:1", "oldest"]], @@ -661,7 +662,11 @@ mkws.pagerNext = function(tname) { } else { var s = '//'; s += config.auth_hostname ? config.auth_hostname : config.pp2_hostname; - s += '/' + config.sp_path + '?command=auth&action=perconfig'; + s += '/' + config.sp_path; + var q = config.sp_auth_query; + if (q) { + s += '?' + q; + } var c = config.credentials; if (c) { if (c) { -- 1.7.10.4