]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/search_controller.rb
Split the rest action into sparate read, update and delete actions thus
[rails.git] / app / controllers / search_controller.rb
index cb97624f95e984905b687d6bdef6098273ec766c..70bf23824a3e3167cf83d204e1d7a9ce9214c7d5 100644 (file)
@@ -21,8 +21,6 @@ class SearchController < ApplicationController
 
 
   def do_search(do_ways,do_segments,do_nodes)
-    response.headers["Content-Type"] = 'text/xml'
-
     type = params['type']
     value = params['value']
     unless type or value
@@ -121,6 +119,6 @@ class SearchController < ApplicationController
       doc.root << way.to_xml_node()
     end 
 
-    render :text => doc.to_s
+    render :text => doc.to_s, :content_type => "text/xml"
   end
 end