tests/soup.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 23 May 2012 15:07:43 +0000 (23:07 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 23 May 2012 15:07:43 +0000 (23:07 +0800)
tests/soup.js

index d1f1549..8dcc17a 100644 (file)
@@ -11,7 +11,8 @@ var session = new Soup.SessionSync();
 var uri = new Soup.URI.c_new("http://www.roojs.com/admin.php");
 var msg = new Soup.Message({method:"GET", uri:uri});
 
-var auth = new Soup.Auth.c_new(Soup.AuthBasic.type);
+var auth = new Soup.Auth.c_new(Soup.AuthBasic.type,);
+print(auth);)
 auth.authenticate('a','b');
 print(auth.get_authorization(msg));