X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=73437496afb4f46add4adf2b6d3847bfb18401f8;hb=7df213947f66e078f3ac244fb4a7512c4410cd3f;hp=4df6f70003f7f8665f9fa7f2215076a554738206;hpb=44dd49f06b330fe8f9a641fed92a15ef338b0f85;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 4df6f70..7343749 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1084,7 +1084,7 @@ function mkws_service_proxy_auth(auth_url, auth_domain, pp2_url) { debug("Run service proxy auth URL: " + auth_url); if (!auth_domain) { - auth_domain = pp2_url.replace(/^https?:\/\/(.*?)\/.*/, '$1'); + auth_domain = pp2_url.replace(/^(https?:)?\/\/(.*?)\/.*/, '$2'); debug("guessed auth_domain '" + auth_domain + "' from pp2_url '" + pp2_url + "'"); }