]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/node_controller.rb
Update the postcode code to do a npemap lookup, rather than a FTP one
[rails.git] / app / controllers / node_controller.rb
index bd81c9aa2cc0e9ee0f6f5cf75fdb5e56304feb4b..cc29c09e52422f90c167fb89734a5067de384bc1 100644 (file)
@@ -5,7 +5,7 @@ class NodeController < ApplicationController
   after_filter :compress_output
 
   def create\r
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     if request.put?
       node = nil
       begin
@@ -35,7 +35,7 @@ class NodeController < ApplicationController
   end
 
   def rest
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     unless Node.exists?(params[:id])
       render :nothing => true, :status => 404
       return
@@ -89,7 +89,7 @@ class NodeController < ApplicationController
   end
 
   def nodes
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     ids = params['nodes'].split(',').collect {|n| n.to_i }
     if ids.length > 0
       nodelist = Node.find(ids)