projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bb6064
)
tests/soup.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:12:48 +0000
(23:12 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:12:48 +0000
(23:12 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
01d0eeb
..
53cdd7b
100644
(file)
--- 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);