projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6001802
)
tests/tickets.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Mar 2011 10:05:16 +0000
(18:05 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Mar 2011 10:05:16 +0000
(18:05 +0800)
tests/tickets.js
patch
|
blob
|
history
diff --git
a/tests/tickets.js
b/tests/tickets.js
index
174bf4b
..
6b54445
100644
(file)
--- a/
tests/tickets.js
+++ b/
tests/tickets.js
@@
-38,13
+38,11
@@
Tickets = {
fetchBugs : function()
{
var session = new Soup.SessionSync();
fetchBugs : function()
{
var session = new Soup.SessionSync();
-
- var status = session.send_message(
- new Soup.Message({
+ var request = new Soup.Message({
method:"GET",
uri:new Soup.URI.c_new("http://roojs.com/mtrack.php/Bugs")
method:"GET",
uri:new Soup.URI.c_new("http://roojs.com/mtrack.php/Bugs")
- })
- );
+ })
;
+ var status = session.send_message(request);
var data = request.response_body.data;
print(data);
var data = request.response_body.data;
print(data);