aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodejs/response.js
diff options
context:
space:
mode:
authorMark Engel <mark.c.engel@gmail.com>2011-01-28 17:04:12 +0100
committerMark Engel <mark.c.engel@gmail.com>2011-01-28 17:04:12 +0100
commit5df2c8b916bf8845042be1f9df4656cd13a3ddbe (patch)
tree8ae6d83cdd87dcdb058c85ce33e566a09752483d /src/nodejs/response.js
parent52531bb1553a7e3a288465a68284192f4fbba18c (diff)
parent243fa3e0193b270deb1614bb0b7e0e8e62afc4ad (diff)
downloadosm-xapi-5df2c8b916bf8845042be1f9df4656cd13a3ddbe.tar.gz
osm-xapi-5df2c8b916bf8845042be1f9df4656cd13a3ddbe.tar.xz
osm-xapi-5df2c8b916bf8845042be1f9df4656cd13a3ddbe.zip
Merge branch 'master' of github.com:slomo/osm-spline-xapi
Diffstat (limited to 'src/nodejs/response.js')
-rw-r--r--src/nodejs/response.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodejs/response.js b/src/nodejs/response.js
index b7fdd85..4be4df0 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('<xml>');
+ this.write(xmlGen.createHeader());
this.started = true;
}
}
@@ -43,7 +43,7 @@ exports.mkXmlRes = function (res){
if(!this.started){
this.atStart();
}
- this.write('</xml>');
+ this.write('</osm>');
this.end();
}
res.putWay = function (pojo){