From b8387a51c21351793882add6c166070c65c5054c Mon Sep 17 00:00:00 2001 From: Alexander Kasimir Date: Wed, 15 May 2013 18:34:13 +0300 Subject: [PATCH] removed http/https check this check will now work with load balancers that do https offloading --- lib/recaptcha.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/recaptcha.js b/lib/recaptcha.js index 17f2555..4fa061a 100644 --- a/lib/recaptcha.js +++ b/lib/recaptcha.js @@ -70,8 +70,8 @@ Recaptcha.prototype.toHTML = function() { query_string += '&error=' + this.error_code; } - var script_src = (this.is_secure ? "https://" : "http://") + SCRIPT_SRC + '?' + query_string; - var noscript_src = (this.is_secure ? "https://" : "http://") + NOSCRIPT_SRC + '?' + query_string; + var script_src = "//" + SCRIPT_SRC + '?' + query_string; + var noscript_src = "//" + NOSCRIPT_SRC + '?' + query_string; return '' + '