projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e4a924
)
tests/soup.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:55:28 +0000
(23:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:55:28 +0000
(23:55 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
80a76dd
..
a5cc75d
100644
(file)
--- a/
tests/soup.js
+++ b/
tests/soup.js
@@
-35,8
+35,8
@@
var msg = new Soup.Message({method:"POST", uri:uri});
// post..
buftxt = "remarks=test";
-var buf = new Soup.Buffer.c_new(buftxt, buftxt.length);
-msg.
request_body.append_buffer(buf);
+
+msg.
set_request('application/x-www-form-urlencoded', Soup.MemoryUse.COPY, buftxt, buftxt.length)
var auth = new Soup.Auth.c_new(Soup.AuthBasic.type, msg, "Basic realm=\"Test\"");