From: Alan Knowles Date: Wed, 23 May 2012 15:55:28 +0000 (+0800) Subject: tests/soup.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=d048a7afe9912cc3af183cde81c268fcc329568f tests/soup.js --- diff --git a/tests/soup.js b/tests/soup.js index 80a76dd8..a5cc75dd 100644 --- 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\"");