From: Alan Knowles Date: Wed, 23 May 2012 15:12:48 +0000 (+0800) Subject: tests/soup.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=a2448fb2e56ba2924e18120f63e02858b57e7626 tests/soup.js --- diff --git a/tests/soup.js b/tests/soup.js index 01d0eeb8..53cdd7b6 100644 --- a/tests/soup.js +++ b/tests/soup.js @@ -15,7 +15,9 @@ var auth = new Soup.Auth.c_new(Soup.AuthBasic.type, msg, "Basic realm=\"Test\"") print(auth); print(auth.authenticate); auth.authenticate('aaaa','bbbb'); -print(auth.get_authorization(msg)); +var authmsg = auth.get_authorization(msg); + +msg.request_headers.append('Authorization', authmsg + '==') //request.headers_append... var status = session.send_message(msg);