From e248fe5f83e6e6c62cf66281937014ce23558b2f Mon Sep 17 00:00:00 2001 From: booo Date: Fri, 28 Jan 2011 16:08:59 +0100 Subject: xml header --- src/nodejs/response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nodejs/response.js') diff --git a/src/nodejs/response.js b/src/nodejs/response.js index 45dcc89..764726a 100644 --- a/src/nodejs/response.js +++ b/src/nodejs/response.js @@ -35,7 +35,7 @@ exports.mkXmlRes = function (res){ res.atStart = function (){ if(!this.started){ this.writeHead(200); - this.write(''); + this.write(xmlGen.createHeader()); this.started = true; } } @@ -43,7 +43,7 @@ exports.mkXmlRes = function (res){ if(!this.started){ this.atStart(pojo); } - this.write(''); + this.write(''); this.end(); } res.putWay = function (pojo){ -- cgit v1.2.3