From 1082f5ad08b9f996a0177ca40f6d37940aaa5b5b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 May 2012 23:22:58 +0800 Subject: [PATCH] tests/soup.js --- tests/soup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/soup.js b/tests/soup.js index b1ff12af..ebfb3cb4 100644 --- a/tests/soup.js +++ b/tests/soup.js @@ -34,7 +34,8 @@ var msg = new Soup.Message({method:"GET", uri:uri}); var auth = new Soup.Auth.c_new(Soup.AuthBasic.type, msg, "Basic realm=\"Test\""); print(auth); print(auth.authenticate); -auth.authenticate('aaaa','bbbb'); +var authvals = authdata['git.roojs.com']; +auth.authenticate(authvals.login ,authvals.password); var authmsg = auth.get_authorization(msg); msg.request_headers.append('Authorization', authmsg + '==') -- 2.39.2