projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df15c79
)
tests/soup.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:28:08 +0000
(23:28 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:28:08 +0000
(23:28 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
309f3f9
..
b5cca3c
100644
(file)
--- a/
tests/soup.js
+++ b/
tests/soup.js
@@
-28,7
+28,7
@@
netrc.split("\n").forEach(function(nl) {
// Soup.URI is a struct.
//var uri = new Soup.URI.c_new("http://www.roojs.com/admin.php/Roo/person");
// Soup.URI is a struct.
//var uri = new Soup.URI.c_new("http://www.roojs.com/admin.php/Roo/person");
-var uri = new Soup.URI.c_new("http://www.roojs.com/head
ers
.php");
+var uri = new Soup.URI.c_new("http://www.roojs.com/head.php");
var msg = new Soup.Message({method:"GET", uri:uri});
var msg = new Soup.Message({method:"GET", uri:uri});
@@
-39,7
+39,7
@@
var authvals = authdata['git.roojs.com'];
auth.authenticate(authvals.login ,authvals.password);
var authmsg = auth.get_authorization(msg);
print(authmsg);
auth.authenticate(authvals.login ,authvals.password);
var authmsg = auth.get_authorization(msg);
print(authmsg);
-msg.request_headers.append('Authorization', authmsg
+ '=='
)
+msg.request_headers.append('Authorization', authmsg)
//request.headers_append...
var status = session.send_message(msg);
//request.headers_append...
var status = session.send_message(msg);