From a2448fb2e56ba2924e18120f63e02858b57e7626 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 May 2012 23:12:48 +0800 Subject: [PATCH] tests/soup.js --- tests/soup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2